[Oberon] Type compatibility rules for Pointers
Jörg
joerg.straube at iaeth.ch
Tue Jun 16 10:28:22 CEST 2020
You're right
:= operator on ARRAYs was not allowed in Oberon-2 but it is in Oberon-7
Jörg
Am 16.06.20, 09:54 schrieb "Oberon im Auftrag von Tomas Kral" <oberon-bounces at lists.inf.ethz.ch im Auftrag von thomas.kral at email.cz>:
> Section 5.2 Compatibility of a Base Type and Its Extension, in
> Hanspeter Mössenböck's book: Object-Oriented Programming in Oberon-2.
Hi Chris,
Yes thank you for the pointer, been there, done that, have some
understanding.
Type extension, and procedure variables, are the basis of OOP.
I learn to use, though often surprised things are possible, unlike in
Modula-2.
Seeing some ETH Oberon modules, COPY() is quite frequently used,
where in Oberon-07, just `:=' assignment will do.
--
Tomas Kral <thomas.kral at email.cz>
--
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