Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALANGUAGE bug
Message
From
14/11/2003 17:43:24
 
 
To
14/11/2003 10:49:33
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00849820
Message ID:
00850122
Views:
23
Actually, there are plenty more examples like this - Fox seems to alias some similar identifiers internally (mapping to the same internal id or byte code) and as a result you can use TYPEAHEAD wherever you are allowed to use TYPE, MEMORY where you are allowed to use MEMO and so on.
? typeahead("foo")   && == type("foo")
scatter name foo memory   && == scatter name foo memo
I wouldn't consider this a bug since valid Fox programs are interpreted correctly. Nowhere does the doc say that Fox is required to raise some error on ill-formed programs.

The only potential problem is that a user could define a UDF named 'typeahead' and then they would find out that this UDF cannot be called using function notation because a function call to typeahead() compiles to the byte code for the type() function.

But this is only a problem for people who don't read documentation - 'typeahead' is a reserved word. In certain contexts it has a defined meaning (to wit, SET TYPEAHEAD etc.) and whatever Fox does in other contexts (== ill-formed programs) is implicitly correct, even if it formats your hard drive and sells your cat on eBay.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform