meta-classes in Oberon? 
Author Message
 meta-classes in Oberon?

> Does Oberon support any kind of meta-classes, incl.
> class methods and/or class variables? It seems Wirth's
> original Oberon language definition only talks about
> instance methods and/or variables, but maybe the language
> got upgraded or redefined because of meta-classes? Or, if not,
> has this problem ever been approached by other Oberon
> compiler implementators?

> Juergen Neuhoff

From the implementation point of view: "class methods" are usually implemented
as (exported) global procedures/functions within the module that declares the respective
class; "class variables" likewise as global variables of this module. The semantics of this
implementation is quite the same as the semantics of "class methods" and "class
Some support for metaprogramming has been built into most Oberon systems (again
not at the level of the programming language but at the library level). If you are using
the linz distribution of the Oberon System V4, you might want to read


Christoph Steindl
Practical Computer Science           Phone:       +43-(0)732-2468-7134
Johannes Kepler University Linz      Fax:         +43-(0)732-2468-7138

A-4040 Linz                 http://www.*-*-*.com/

Fri, 05 May 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. meta-classes in Oberon?

2. New meta class sematics?

3. meta-class

4. Examples of metaclasses as factory functions/classes?

5. static methods and meta classes

6. Meta-class inheritance problem (Python2.0 bug?)

7. metaclasses and setting __class__

8. Multiple inheritance with meta classes?

9. Meta-classes: can they produce parameterized subclassing?

10. properties + types, implementing meta-class desciptors elegantly?

11. Was: Examples of metaclasses as factory functions/classes?

12. FW: [PHP Classes] MetaL - a XML based meta-programming language developed using PHP


Powered by phpBB® Forum Software