[gambit-list] port fun

Paul Wolneykien manowar at altlinux.org
Mon Oct 12 04:33:54 EDT 2009


В Пнд, 12/10/2009 в 01:15 -0700, lowly coder пишет:
> Hi!
> 
>   I have some pre-existing library code I'm dealing with, which I can
> pass it an port (that the library will send output to).
> 
> Is it possible to create a function foo, so that
> 
> (foo output-port1 output-port2)
> 
> will return me a output-port-magic
> 
> s.t. when anything iw written to output-port-magic, it's written to
> both output-port1 and output-port2?

  Hi,

  Possibly you can use some of the open-*-pipe procedures to create a
proxy for dispatching incoming data to a set of underlying ports.

  Best regards,

    Paul.





More information about the Gambit-list mailing list