[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Wish to use IOChan.RawRead() on StdChans.StdInChan()

From: Gaius Mulley
Subject: Re: [Gm2] Wish to use IOChan.RawRead() on StdChans.StdInChan()
Date: Wed, 13 Apr 2011 10:26:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

SiTex Graphics <address@hidden> writes:

> Hi Gaius,
> I'd like to be able to use IOChan.RawRead() on the standard input
> channel.  Stonybrook and XDS both allow this, and that flexibility
> makes it easy to process input the same whether it comes from a file
> or over a pipe.  Test file attached.  Compile with
> gm2 -o teststdin -fiso -fmakeall teststdin.mod
> It looks like the raw flag just needs to be added to the following
> line in StdChans.mod:
> stdin := MapFile(FIO.StdIn, read+text);
> I tried to compile StdChans.mod with that modification, but I ran into
> a bunch of parameter mismatch errors.  I guess I'm missing some
> required switch for compiling that module.
> Thanks,
> Scott

Hi Scott,

thanks for the test code and suggestion/bug report.  Yes sure this is
very sensible and will be applied to the cvs,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]