🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1106

Re: Actor File Class Buglet?

#1106
From: Dave Wells
Date: Mon, 21 Jan 1991 15:30
14 lines
1195 bytes
>From: i1neal@exnet.iastate.edu (Neal Rauhauser -- ELT Computer Applications Group)

>     I've had some awful funny problems with Class:TextFile, method:readLine()
>in Actor3.0. Apparently when there is a <cr> on byte N * 256 of a file 
>readLine() ignores it and goes to the next <cr>. The code for this
>(buffered) method is included with the class and is not a primitive.

Indeed - the readline() implementation assumes for some reason that
the <delimiter> instance variable is a single character. There's no reason
that it should be - indeed the *default* value is CR_LF (2 chars), which
gives the problem that you describe. It is possible (but fiddly) to recode
the method so that it works correctly.

Dave Wells
Technical Details
Message-ID: <55040006@otter.hpl.hp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool2.mu.edu!sdd.hp.com!ucsd!ucbvax!hplabs!otter.hpl.hp.com!otter!adw
References: <1991Jan21.043531.13108@news.iastate.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool2.mu.edu!sdd.hp.com!ucsd!ucbvax!hplabs!otter.hpl.hp.com!otter!adw
From: adw@otter.hpl.hp.com (Dave Wells)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Actor File Class Buglet?
Message-ID: <55040006@otter.hpl.hp.com>
Date: 21 Jan 91 15:30:56 GMT
References: <1991Jan21.043531.13108@news.iastate.edu>
Organization: Hewlett-Packard Laboratories, Bristol, UK.
Lines: 14