This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: First-class environment proposal


Gary Houston <ghouston@easynet.co.uk> writes:

> Thanks anyway for the explaination for the gdb problem.  I hadn't
> gotten around to trying to fix it.  The seek in the ptob probably
> doesn't need to be set for string ports, but scm_fseek/scm_ftell
> should be generalised to work with any kind of port.  I'll do it soon.

I was thinking it'd probably be easier to just implement scm_fseek
around the port's own seek method (rather than trying to figure it out
in scm_fseek... it's not that it's difficult, but it'd probably help
avoid this problem coming up again); the gdb bit is basically trying
to empty the strport first, and I didn't come across anything that did
it easily (without munging the buffer directly, which felt sorta
wrong; I could've been looking at the wrong file again, though ;).

-- 
Greg