Hi, Had a go at including Stream in the Glossary. https://en.wikibooks.org/wiki/Oberon/Glossary My understanding is meagre. If someone can improve that or offer a suggestion, good, thanks, ... P.L. -- mobile: +1 778 951 5147 Bcc: peter at e a s t h o p e dot c a projects: https://en.wikibooks.org/wiki/User:PeterEasthope
Hello, Peter This is a very interesting question. It is very hard for me to write a good sentence, but let me try maybe, or let me express what I think Maybe it is worth changing the wiki article from Stream(data type) to Stream(computing): https://en.wikipedia.org/wiki/Stream_(computing) It is hard for me to come up with a sentence for the glossary. However, if the glossary may link to some examples, here's an example that can be compiled with oo2c and its abstractions. --- MODULE argTest; IMPORT ProgramArgs, TextRider, StdChannels; VAR r: TextRider.Reader; w: TextRider.Writer; arg: ARRAY 16 OF CHAR; i: LONGINT; BEGIN r := TextRider.ConnectReader(ProgramArgs.args); w := TextRider.ConnectWriter(StdChannels.stdout); FOR i := 0 TO ProgramArgs.args.ArgNumber() DO r.ReadLine(arg); w.WriteString(arg); w.WriteLn END; END argTest. --- It is apparent here that we can use TextRider module's reader not only to read from file, we can read program arguments. And we can also write to standard output by connecting StdChannels.stdout. I really like how oo2c library is designed. $ oo2c -M argTest.Mod then: $ bin/argTest bin/argTest $ bin/argTest aaa bbb bin/argTest aaa bbb Let me also credit Ulm's library: https://www.mathematik.uni-ulm.de/oberon/0.5/articles/streams.tut.html norayr On Wed, 18 Nov 2026 07:59:26 -0700 peter@easthope.ca wrote:
Hi,
Had a go at including Stream in the Glossary. https://en.wikibooks.org/wiki/Oberon/Glossary
My understanding is meagre. If someone can improve that or offer a suggestion, good, thanks, ... P.L.
-- mobile: +1 778 951 5147 Bcc: peter at e a s t h o p e dot c a projects: https://en.wikibooks.org/wiki/User:PeterEasthope
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
participants (2)
-
peter@easthope.ca -
նորայր