Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: call by Reference search in the list of the fields
Message
 
To
16/10/2004 05:00:33
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00951922
Message ID:
00952354
Views:
12
Fabio,

I totally agree with you that it is a bug, but, If this behaviour is by design as others said, then I think it is not only a bug, but a serious one, because then the design is bugged.

As you said, if, by design, you can not pass fields by reference (and I think we all agree and understand why foxpro shouldn't allow it), then foxpro has no business checking the existance of fields when you pass it by reference, because my code explicitly, following foxpro rules, tells foxpro to use the parameter by reference, and this automatically rules out the possibility of using fields.

Imagine I write this (I am not claiming that what I will describe really happens, is just an example):
* TEST.TEST is a table disguised for some wicked reason
USE TEST.TEST
Now, somewhere along the path, foxpro finds TEST.DBF, and because DBF is the default extension used by USE, then it merrily opens it, aren't we going to say that this is a bug? Yes by design DBF takes precedence when no extension is given, but ignores it when any extension is given. The same should apply here, because in the code when I tell foxpro that the parameter is passed by reference (like when I give an extension) I am overriding foxpro's defaults.

Well, I hope it made sense, just my 2 cents.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform