Previous Next Table of Contents

6. :class

XBase++ doesn't support the :class instance variable as a method of getting at an object's class object. However, it does provide the :classObject() method. To allow your code to with in both environments you can try using:

#xtranslate :class => :classObject()

It might also be worth noting that Xbase++ returns a different value when you take the :className() of a class object. With a simple (non-inheriting) class under Class(y), the :className() of the class object would be "Class", under Xbase++ it is the name of the Class itself. This probably isn't a significant difference but, depending on any tricks and hacks you've used with Class(y) it could be a source of "gotcha" bugs.


Previous Next Table of Contents