Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why '::'?
Message
From
26/04/2000 22:22:16
 
 
To
25/04/2000 22:48:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00363407
Message ID:
00363951
Views:
16
>>>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?

In VFP3, it's needed to access the method of the immediate superclass - there's no DODEFAULT()

It provides the option to bypass intervening layers of parent classes to access the specific original parent class method - it can simplify an inheritance tree considerably by not forcing multiple forks at a previous level that are virtually identical.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform