Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug: call by Reference hide Public and Private variables
Message
De
16/10/2004 15:44:19
 
 
À
16/10/2004 14:11:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00951952
Message ID:
00951989
Vues:
29
Hi Thomas,

I'd say this *IS* a bug.

I can't say that I've ever seen this particular behaviour documented. The code definitely uses "m." to preclude other oddities (like field taking precedence).

I might expect differently with "PRIVATE" (have to think on that one) but here PUBLIC is declared.

All that said, I do get the same behaviour using VFP8 SP1 (I do not have VFP9 installed) so I quite possibly did miss/forget some prior words on the subject.

cheers

>Hi Fabio,
>
>this one is definitivelky not a bug. The behaviour is known since FPW,
>and I know I read about it in the docs then.
>I am fairly sure that the behaviour is still documented.
>A quirk of the language, but since it is documented, it shouldn't be called
>a bug. And I've come across quite a few apps which would break if this was changed:
>Consider programmers writing "half-generic" functions against global arrays
>and then exchanging help array's into the same name via calls by reference.
>
>Ugly as hell, but "running code".
>
>Regarding the previous one, call by ref with a table field:
>this is also the behaviour since very old days.
>
>Annoying, yes, but you could use it to find out if a
>table field exists ;-)
>
>regards
>
>thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform