[Oberon] Pattern pat in A2, Oberon.Mail.Mod.

peter at easthope.ca peter at easthope.ca
Wed Dec 13 16:57:18 CET 2023


Hi,

In Oberon.Mail.Mod PROCEDURE LoadMsgs declares 
  pat: ARRAY 8 OF CHAR;

Then assigns 'pat := " From "; pat[0] := Strings.LF;'
Ref. https://en.wikibooks.org/wiki/Oberon/A2/Oberon.Mail.Mod#pat

After that pat[5] = " " and pat[6] = 0X.
The pattern marks the beginning of each message in the MailMessages file.

To my understanding pat[7] is never referenced.  This declaration should suffice?
  pat: ARRAY 7 OF CHAR;

After the assignment, pat doesn't change.  Therefore 
make it a global variable in the module and assign the  
value in the module body?

Thx,             ... P.L.

-- 
VoIP:   +1 604 670 0140
work: https://en.wikibooks.org/wiki/User:PeterEasthope



More information about the Oberon mailing list