[m-users.] Attaching a stream to a file descriptor

Julien Fischer jfischer at opturion.com
Fri Apr 3 16:53:56 AEDT 2020

Hi Volker,

On Thu, 2 Apr 2020, Volker Wysk wrote:

> Is there a way to make a stream from an existing file descriptor?

Do you mean make io.{binary,text}_{input,output}_stream out of a file
descriptor, or make make a file descriptor an instance of the stream
type classes?

Both would be possible, although possibly the io module doesn't export
everything necessary for external code to do it at the moment; the
latter would just be a matter of defining the require type classe


More information about the users mailing list