On Feb 21, 2006, at 5:57 PM, Joseph J. Strout wrote:

Now that REALbasic 2006 has shared methods and shared properties, is it possible to have a true Singleton object?

Sure -- but then, it was quite possible before too, except that the enforcement was at runtime rather than at compile time.

The current shared methods and properties make the class behave like a module, not like an object (which is what a singleton should be). You can't store a reference to a class in a data structure, or exploit polymorphism with its shared methods.

I have put in a feature request: bzvggysz for first-class classes. Feel free to sign on.

Guyren G Howe
guyren-at-relevantlogic.com
http://relevantlogic.com

REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to