[Ecls-list] [Patch] gray:stream-file-descriptor
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Thu Mar 11 13:30:28 UTC 2010
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.
Juanjo
On Thu, Mar 11, 2010 at 2:15 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:
> Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> writes:
>
> > On Thu, Mar 11, 2010 at 1:16 PM, Tobias C. Rittweiler <tcr at freebits.de
> >wrote:
> >
> >>
> >> An issue of discussion may be that the patch as-is ties the serve-event
> >> contrib to the availability of gray streams -- although ECL can be built
> >> without those. If this dependency is not desired, what would be your
> >> prefered way to deal with this issue?
> >>
> >
> > Conditionalization with #+ ?
>
> Sure but where exactly and how? If I sustain the old definition of
> stream-fd in serve-event.lisp, there's an Once And Only Once violation
> between that stream-fd and stream-file-descriptor in clos/streams.lsp.
>
> So probably stream-file-descriptor would have to be based on stream-fd;
> in what file should I place stream-fd?
>
> -T.
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100311/ef1b013a/attachment.html>
More information about the ecl-devel
mailing list