On 4/3/07, Alek Storm <[EMAIL PROTECTED]> wrote:
we can just use set_hll_global and get_hll_global, storing the class PMCs like normal objects. Which makes sense, given that class PMCs can also *be* normal objects (metaclasses, etc), and we don't need a separate container for classes. My Smalltalk-to-PIR compiler used this, and it worked quite well.
Whoops, that metaclasses reference didn't quite make sense (it was pretty late in my timezone). I meant that, in Smalltalk for example, classes are also first-class objects. Also, in prototype-based languages like Self and ECMAScript, objects might also want to act like classes, as they can be cloned and extended, etc. -- Alek Storm