Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if property is array, collection, etc
Message
 
 
À
20/10/2008 19:26:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355841
Message ID:
01355985
Vues:
28
>>If someone created a class with a property named Count, I wouldn't care what kind of results their class gave me ;-) That would probably be the tip of the iceberg as far as unexpected behavior.
>
>But it was expected to behave like a collection, before VFP had collections. There were collection classes in frameworks, and they were designed to BE collections - you could call their item() method with number or character key. Which is the expected behavior - of a collection.

I wasn't objecting to creating collection classes before VFP had collections. I was objecting to using a reserved word to name a property of a custom class.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform