Ram�n

guess who has tried :}

I do not think that this can be done at the mooment
however there is a sort of work round

have a look at the spool device (device 2)
this directs all write statements to ^Spool
now it is possible to map ^Spool to a Cache Stream property of a class
and treat it as an object

not nice - and you can only have 1 per process but it does work

and yes
I agree 1000% that it would be reeeeeely good to be able to set an IO
device as a stream

Peter


On Tue, 03 Aug 2004 15:19:13 +0100, Ram�n Jim�nez
<[EMAIL PROTECTED]> wrote:

>Hi,
>
>Has anyone here ever tried to map a Cach� device to a stream?
>
>I've been thinking about this for a few months now... Especially after I 
>found what seems to be equivalent functionality in the Java binding. The 
>idea being that you could "shadow" a device (the current device, for 
>example) to a file or global stream, or alternatively being able to use 
>the stream API in some cases where currently you're restricted to the 
>device API.
>
>It would seem as if this can only be done by changing Cach� itself... Am 
>  I right to think this? If so, are there any plans in this direction 
>for 5.1?
>
>Thanks in advance,
>
>Ram�n


Reply via email to