[futurebasic] Re: FB^3 & Method overloads

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: David Blache <microcsm@...>
Date: Thu, 4 Dec 97 23:46:45 -0600
Terence Jordan wrote:

>>Overloads are supported - I just wasn't sure what you were talking about.
>> You can change the parameter in an overridden method.
>Maybe I misunderstood you earlier, Dave...
>For instance:
>BEGIN METHOD drawRect(theRect)
> ...(first set in same class)
>is valid,
>BEGIN METHOD drawRect()
> ...(second set in same class)
>is also valid, but...
>BEGIN METHOD drawRect(x1,y1,x2,y2)
> ...(third set in same class)
>is not valid because of the 1 parameter limit?
>Just trying to understand it...

That is correct.  And the parameter can change for an override if you 
need it to.

>BTW, I'm not too upset about the only one parameter thingy, I mean, you can
>just create a spec and push stuff into it, heck, I could have an object
>that contains all the parameters, and then pass the other class the object
>with all the data; easy, eh?

Well yes.  You can also just set the properties one at a time before your 
action call.  If you are after speed, you can even set the properties 
directly (without going through the object runtime) by doing something 
like this:

myObject..oRect = myRect

Cool eh?

|       David Blache - Developer       |
|   Staz Software, Inc - Stazologist   |
|        (tech@...)       |
|   Microcosm Software, Inc. - Owner   |
|        (microcsm@...)        |