namgk / ambienttalk

Automatically exported from code.google.com/p/ambienttalk
0 stars 0 forks source link

Consistent but Lightweight Stratification #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In retrospect, super should have been a meta-level slot. It says something 
about the object itself, 
not about the problem domain of the object, so it should be in the mirror.

The downside of AT’s current approach to stratification is that it is rather 
cumbersome to use, 
especially if one is simply interested in e.g. overriding meta_print to change 
the printing 
functionality (Java has toString defined on the Object class for such purposes)

E uses “miranda methods” which are prefixed with ‘__’ to allow objects 
to interact with the 
interpreter. Perhaps a clean way out could be to provide a modifier 'meta' for 
fields or methods. 
Fields/methods marked with meta automatically end up in the mirror of the 
object. This way, they 
do not interfere with the base level, while they remain as easy to define as 
base-level fields.

Original issue reported on code.google.com by tvcut...@gmail.com on 16 Sep 2008 at 1:35

GoogleCodeExporter commented 8 years ago

Original comment by tvcut...@gmail.com on 17 Sep 2008 at 7:33