On Jan 26, 2007, at 9:13 PM, Norman Palardy wrote:

void ?

But isn't a constructor actually returning an instance of the class?

In the following message:

<http://support.realsoftware.com/listarchives/realbasic-plugins/ 2005-11/msg00047.html>

Joe implies that a function called "Constructor" in the Method definition is special, acting like a real constructor. From that I would assume you could do either of the following:

peep1 = new myPersonClass()
peep2 = new myPersonClass("Fred", 37)

And while I know in C++ you don't declare a return type, I wasn't sure in RB.

Steve
_______________________________________________
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