[Oberon] Oberon for a C++ user.

Douglas G. Danforth danforth at greenwoodfarm.com
Wed Jan 20 05:56:29 CET 2016


On 1/19/2016 6:42 PM, Srinivas Nayak wrote:
> So Class takes care of encapsulation(internal representation of a 
> concept)
> and abstraction(selectively exposing) both
Abstraction and exporting are different concepts.

In Oberon one exports from a record and one exports from a module.
If the record is not exported then the fields of the record are not 
exported.
One must export the record in order to see the fields that are exported.

A record (in Component Pascal which is a superset of Oberon-2)
can have the attributes ABSTRACT, EXTENSIBLE, and LIMITED.
Those attributes give the record different properties.  Those
attributes do not apply to a module.

-Doug Danforth



More information about the Oberon mailing list