Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: scope resolution and HIDDEN properties
Message
De
16/02/2005 10:42:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
BUG: scope resolution and HIDDEN properties
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00987452
Message ID:
00987452
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform