[Oberon] Re (2): Streams.
chuck at kuracali.com
Fri Apr 23 00:31:34 CEST 2021
I would like to be able to chain commands, where the output of one command
is treated as the input to another command. Something like:
Stream.Do List.File AFile.txt | Lines.Uppercase | Lines.Sort | Lines.Uniq |
The three above modules (Stream, List, and Lines) would co-operate to list
the number of unique case-insensitive lines in a file. This should be
possible without multitasking or process scheduling -- the Stream.Do
command would merely set the output of each command (a PROCEDURE variable)
to the input of the next with the final output being retained by 'Do' and
written to the system log.
That is what I envision in a Stream module suitable for Project Oberon.
Others may have a different opinion!
On Thu, Apr 22, 2021 at 1:21 PM <peter at easthope.ca> wrote:
> From: Charles Perkins <chuck at kuracali.com>
> Date: Thu, 22 Apr 2021 12:34:35 -0700
> > I was just wishing for streams in Project Oberon so this is timely for
> Charles, can you elaborate on the motivation for Streams please.
> Why not just use Files directly?
> Can your requirements help to illustrate?
> Thx, ... P.
> VoIP: +1 604 670 0140 Bcc: peter at easthope. ca
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon