Re: Overloading a Constructor

2006-07-22 Thread Alfred Van Hoek
On Jul 22, 2006, at 8:48 AM, Phil M wrote: Does each function (such as "MyCMethodConstructor") need to have a unique name? It's a map, right? What would occur when two declarations map a unique RB method to a function pointer named MyCMethodConstructor? _

Re: Overloading a Constructor

2006-07-22 Thread Phil M
On Jul 22, 2006, at 8:33 AM, Alfred Van Hoek wrote: Well, one of the other things that I am confused about is declaring the method. Does the name of the method in C have to be the same as the "description" written in the REALmethodDefinition? (all examples I have seen have shown the same n

Re: Overloading a Constructor

2006-07-22 Thread Alfred Van Hoek
On Jul 22, 2006, at 7:50 AM, Phil M wrote: On Jul 21, 2006, at 8:52 PM, Norman Palardy wrote: I think all they are saying is to create several regular method definitions for your class. Just name them "Constructor" Well, one of the other things that I am confused about is declaring the

Re: Overloading a Constructor

2006-07-22 Thread Theodore H. Smith
REALmethodDefinition CSMethods[] = { { rp ED_CS_Constructor, 0, "Constructor(CharSet as ElfData)" }, { rp ED_CS_HasChar, 0, "HasChar(Char as integer) as boolean" }, ... On Jul 21, 2006, at 8:52 PM

Re: Overloading a Constructor

2006-07-22 Thread Phil M
On Jul 21, 2006, at 8:52 PM, Norman Palardy wrote: I think all they are saying is to create several regular method definitions for your class. Just name them "Constructor" Well, one of the other things that I am confused about is declaring the method. Does the name of the method in C have

Re: Overloading a Constructor

2006-07-21 Thread Norman Palardy
On Jul 21, 2006, at 1:41 PM, Phil M wrote: On Jul 21, 2006, at 4:27 PM, Christian Schmitz wrote: Sorry, I am a little slow. Could you please give an example? Just like in RB. Define methods as usual and name them Constructor or class name. For use of REALmethodDefinition, please check

Re: Overloading a Constructor

2006-07-21 Thread Christian Schmitz
Phil M <[EMAIL PROTECTED]> wrote: > There are only 7 examples in the SDK and none of them have overloaded > constructors. Well, I'm sorry, but I think overloaded constructors were added later and examples are old. Just define methods like in RB and you are fine. Over time you will learn that the

Re: Overloading a Constructor

2006-07-21 Thread Phil M
On Jul 21, 2006, at 4:27 PM, Christian Schmitz wrote: Sorry, I am a little slow. Could you please give an example? Just like in RB. Define methods as usual and name them Constructor or class name. For use of REALmethodDefinition, please check the examples. There are only 7 examples in t

Re: Overloading a Constructor

2006-07-21 Thread Theodore H. Smith
On 21 Jul 2006, at 21:24, Phil M wrote: On Jul 21, 2006, at 4:08 PM, Christian Schmitz wrote: The documentation only seems to provide information for a default (no parameters) constructor and that is one that I *don't* want. that's the initialiser which is always called. Just define two

Re: Overloading a Constructor

2006-07-21 Thread Christian Schmitz
Phil M <[EMAIL PROTECTED]> wrote: > Sorry, I am a little slow. Could you please give an example? Just like in RB. Define methods as usual and name them Constructor or class name. For use of REALmethodDefinition, please check the examples. Gruß Christian -- Around eleven thousand functions in

Re: Overloading a Constructor

2006-07-21 Thread Phil M
On Jul 21, 2006, at 4:08 PM, Christian Schmitz wrote: The documentation only seems to provide information for a default (no parameters) constructor and that is one that I *don't* want. that's the initialiser which is always called. Just define two methods for your constructors. Sorry, I am

Re: Overloading a Constructor

2006-07-21 Thread Christian Schmitz
Phil M <[EMAIL PROTECTED]> wrote: > How do you overload a constructor for a class defined with > REALclassDefinition? I would like to have the following: > > Constructor(p As Picture) > Constructor(w as Width, h As Height) > > The documentation only seems to provide information for

Overloading a Constructor

2006-07-21 Thread Phil M
How do you overload a constructor for a class defined with REALclassDefinition? I would like to have the following: Constructor(p As Picture) Constructor(w as Width, h As Height) The documentation only seems to provide information for a default (no parameters) constructor and that i