[Oberon] Displacement vector in Mail.

peter at easthope.ca peter at easthope.ca
Sat Dec 16 06:52:35 CET 2023


Another detail I'm trying to understand.

Mail.LoadMsgs declares a displacement vector, div.
https://en.wikibooks.org/wiki/Oberon/A2/Oberon.Mail.Mod#div

It's calculated here.
https://en.wikibooks.org/wiki/Oberon/A2/Oberon.Mail.Mod#CalcDispVec

A similar displacement vector is in the TextSearch further down in the 
module source.

Search finds the location of a pattern.  I don't understand why a 
displacement vector is needed.  What is the role of the displacement 
vector.

Thanks,                          ... P.L.


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



More information about the Oberon mailing list