[Ecls-list] [Patch] gray:stream-file-descriptor

Tobias C. Rittweiler tcr at freebits.de
Mon Mar 15 13:07:31 UTC 2010


"Tobias C. Rittweiler" <tcr at freebits.de>
writes:

> Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> writes:
>
>> stream-fd only makes sense with serve-event. Then, why not storing the
>> defgeneric _there_? That a generic function is related to gray streams does
>> not mean that it has to be in the file src/clos/streams.lsp Besides this, I
>> would add the call to the generic function stream-file-descriptor at the end
>> of stream-fd as a last resort, and preceded by a #+clos-streams This way
>> serve-event still relies on a function (stream-fd) that may or may not have
>> this clos-related extension.
>
> I'd think that getting at a stream's underlaying FD is something that
> can be generally useful for people besides serve-event, e.g. for
> interfacing to C libraries, isn't it?

Ok here's an updated patch. Building without ECL_CLOS_STREAMS is
currently broken, so I couldn't really test it.

  -T.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-file-descriptor.diff
Type: text/x-diff
Size: 7019 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100315/9273ec81/attachment.diff>


More information about the ecl-devel mailing list