On Fri, Aug 25, 2000 at 04:51:17PM -0800, [EMAIL PROTECTED] wrote:
> Hello:
> When Holger speaks, I pay attention. I have the following line
> of code for reading POST input from CGI as follows:
> ;=======================================
> either tmp > 0
> [
>     buffer: make string! (tmp + 10) ; allocate storage space
>     while [tmp > 0]                 ; and read
>         ; I think Holger suggests this is not good:
>         [tmp: tmp - read-io system/ports/input buffer tmp]
>     return buffer
> ]
> What would be a safe alternative, please?

For stdin/out you may still have to use read-io to be fully
interoperable across platforms. That's because REBOL does not
yet fully support non-socket streams at the port level, e.g.
within a 'wait block. That is likely to change in the future though.

My point about not using read-io mostly refered to TCP streams.

-- 
Holger Kruse
[EMAIL PROTECTED]

Reply via email to