Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: scope resolution and HIDDEN properties
Message
From
16/02/2005 10:42:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
BUG: scope resolution and HIDDEN properties
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00987452
Message ID:
00987452
Views:
62
Scope resolution don't see hidden properties.

Then, I cannot call the sub-subclass methods, and OOP is corrupted.

repro
CLEAR
ON ERROR ?? MESSAGE()
WITH CREATEOBJECT("vfpClassesAreBug1")
	.CALL
ENDWITH
ON ERROR


DEFINE CLASS vfpClassesAreBug1 as ScopeResolutionBUG  
	PROCEDURE call
		? "SCOPE RESOLUTION		"
		ScopeResolutionBUG::call()
		? "DODEFAULT			"
		DODEFAULT()		
	ENDPROC 
ENDDEFINE

DEFINE CLASS ScopeResolutionBUG  as custom
	hiddenproperty = 1
	
	HIDDEN hiddenproperty
	
	PROCEDURE call
		?? this.hiddenproperty 
	ENDPROC 
ENDDEFINE
Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform