[Oberon] Export of Oberon Mail.SendCmd().

Joerg joerg.straube at iaeth.ch
Thu Jun 15 07:56:14 CEST 2023


Generally, re-using code instead of copying is a good approach.
If you do so, then the whole code of Mail is imported in News. Possible but perhaps there is even a better approach to re-use code.

What about this: try to separate all common code in an own module (e.g call it Communication.Mod or MsgBase.Mod or Utilities.Mod or so) and import this new module in Mail and in News.

br
Jörg

> Am 14.06.2023 um 19:53 schrieb peter at easthope.ca:
> 
> Hello again,
> 
> Several procedures in Mail are used in Oberon News. Rg.: 
> Mail.ParseContent(), Mail.DecodeMessage() & Mail.GetSetting().
> 
> Is export of SendCmd() and use in News objectionable? 
> Ie. in Mail, change PROCEDURE SendCmd(...) to PROCEDURE SendCmd*(...).
> 
> Thanks,                      ... P.
> 
> - 
> mobile: +1 778 951 5147
> VoIP:   +1 604 670 0140
> 
> --
> 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