Oz and Mozart Users Mailing List

Re: instances reflection


From: Adriano Volpones (adriano.volpones@arscomputandi.com)
Date: Wed Apr 02 2003 - 00:02:20 CEST


Hi Gabor and all,

> Nevertheless, you should be able to provide access to the reflection
> information of classes you write:
> You could put a feature 'class' in all your classes with the class itself
as
> the value, for example.

well, it's exactly what I did and this is an example of the code

...
class SDate from BaseObject
   feat
      d
      baseDay: 30300
      className: 'SDate'
...
(where probably Torsten should recognize the Smalltalk implementation of the
Date class: I am a smalltalker too and every day I remember the good gone
days with 1000 classes already tested and ready to use...)

But, after all, there SHOULD be a more elegant solution to the reflection
and introspection wishes.

Adriano

-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs@mozart-oz.org.



This archive was generated by hypermail 2b29.