>>>Hi
>>>
>>>I just wanted to know why place like West Wind and Flash
>>>use the following;
>>>
>>>OBJECT::Method it indicate a method and not
>>>OBJECT.Method?
>>>
>>>TIA
>>>
>>>Mal
>>
>>Mal,
>>
>>It is actually CLASS::Method that is being used. That is the scope resolution opreator which is used to refer to a method in a specific class. It should be used when creating code in a sbuclass and you desire to call the code in the superclass.
>
>I consider the use of "::" as the equivalent of a GOTO command - a sign of a questionable design. Are there any circumstances where it legitimately needs to be used?
How do you consider this a GOTO? GOTO (if I remember correctly) go to some specified label which may have nothing to do with the code currently running.
The scope resolution operator is used to issue call backs up the hierarchy chain. The most common usage as others have said is to make a call back to the parent class method. But I have used it in composite classes to bypass code in the parent class and run the code in the grandparent class and above. I think this is totally legitimate.
Just my $0.02.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao