[Oberon] Class Methods Vs. Procedure variables in Records

Richard Hable informujo at aon.at
Sun Mar 5 22:56:49 CET 2017


Am 2017-03-03 um 11:40 schrieb Andreas Pirklbauer:

> That is exactly right: There are indeed no type extensions in the
> Oberon "inner core" (modules Kernel, FileDir, Files and Modules). And
> almost no type extensions in the "outer core" (modules Input,
> Display, Viewers, Fonts, Texts, Oberon). The one exception I found is
> in module Texts

I think, it would actually be a good thing to have more object
orientation also in the core modules. It could make the system less
static and more adaptable and user friendly.

For example, if module TextFrames contained type-bound procedures based
on the Frame type instead of a collection of static procedures with a
Frame parameter, one could easily adapt its behavior by overriding just
a few selected procedures.

And if all documents were based on a common type with overridable
type-bound command procedures, the user would not have to choose between
commands like "Edit.Store" and "Draw.Store", but simply invoke "Store",
which would automatically call the right procedure according to the
actual document type.

Richard



More information about the Oberon mailing list