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


Klaus Schilling <Klaus.Schilling@home.ivm.de> writes:

> Jim Blandy writes:
>  > 
>  > > (I'll get around to the other suggestions soon.  I'm going to try to
>  > > get Greg's I/O port changes merged today.)
>  > 
>  > Whurf... I meant Gary's I/O port changes.  You know, Gary Houston, the
>  > guy who's done all the system call support...
>  > 
> How likely is it that this breaks existing code that uses ports? 

It depends on whether the code uses the `exported' functions
(basically, anything you can call from scheme) or whether it munges
directly with various port things at the c level, like fetching stdio
streams from port objects, or directly manipulating
SCM_STREAM(portob)... this seems to happen most often with string
ports, which have changed incompatibly wrt what SCM_STREAM(strport)
will return... in fact, with the patch as it currently is on Gary's
site, the gdb interface is broken for exactly this reason; it would be
easy to fashion a quick hack, but portob functions probably should
include an ftell & fseek methods to get around having to know what the
port is doing under the hood.

-- 
Greg