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


| I wrote:
| 
| > portob functions probably should
| > include an ftell & fseek methods to get around having to know what the
| > port is doing under the hood.
| 
| Of course, as anyone who's checked out the patch knows, Gary's new
| port stuff does include a seek method in ptobfuns... I was looking at
| the guile cvs file for some strange reason.

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.

There was an omission from ports.c:scm_newptob; it should include:

      scm_ptobs[scm_numptob].seek = ptob->seek;

Without this, read/write fports are broken too.