[Oberon] Texts.StoreAscii?

Jörg joerg.straube at iaeth.ch
Sun Sep 10 09:52:38 CEST 2017


No. The Oberon type „Texts.Text“ is more than pure ASCII text; e.g. it contains font information not available in pure ASCII text. So, you need a procedure to convert Texts.Text to pure ASCII.
This is not intended to be done in module „Texts“, as the name states it handles „Texts" and not ASCII files. Theoretically you could incorporate „StoreAscii" in module „Edit“. But as the original module „Edit“ did not offer it, you would hamper the compatibility between Oberon implementations. This is the reason why EditTools (ET) was invented, offering the procedure „StoreAscii“. You can see module „EditTools" as an extension to the original "Edit".
Jörg

> Am 06.09.2017 um 21:53 schrieb peter at easthope.ca:
> 
> In EO and in UnixAos, Texts has,
>  PROCEDURE Store* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT);
> 
> StoreAscii* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT);
> analogous to ET.StoreAscii, should also be possible.
> 
> Is there an efficient means to accomplish Texts.StoreAscii 
> without adding another procedure?
> 
> Thanks,                                ... Lyall E.
> 
> -- 
> 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
> Tel: +1 360 639 0202                      Pender Is.: +1 250 629 3757
> http://easthope.ca/Peter.html              Bcc: peter at easthope. ca
> 
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list