Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] A bug in file port? Re:(2)

From: rebol:techscribe at: 18-Sep-2000 16:55

Hi Geo, then I recommend you skip to Chapter 21 (page 673). It's all about ports. (Specifially page 677 bottom says: We can return fp to the head of file with the head function: fp: head fp } In case you haven't discovered it yet, I'll think you'll find the detailed review of the open function (pp. 678) quite enlightening. It reviews the port object that is returned by the open function in some detail. At 03:21 PM 9/18/00 -0700, you wrote:
>Yep, it works! Should have read the description more closely. > >Thanks, Elan! > >Geo... > >PS I just got your book. It looks good at first sight. :) > >[rebol--techscribe--com] wrote: >> >> Hi Geo, >> >> you're doing great! You overlooked one little detai: >> >> replace >> >> head fp >> >> by >> >> >>fp: head fp >> >> The head function RETURNS the same port whose current position is at the >> head of the port. It does not modify the current position of its argument! >> >> Hope this helps, >> >> >> ;- Elan [ : - ) ] >> author of REBOL: THE OFFICIAL GUIDE >> REBOL Press: The Official Source for REBOL Books >> http://www.REBOLpress.com >> visit me at http://www.TechScribe.com >
;- Elan [ : - ) ] author of REBOL: THE OFFICIAL GUIDE REBOL Press: The Official Source for REBOL Books http://www.REBOLpress.com visit me at http://www.TechScribe.com