Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BIG BUG: with Valid() .F. textbox can lose focus.
Message
From
27/11/2003 10:48:57
 
 
To
27/11/2003 07:21:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00853662
Message ID:
00854031
Views:
23
Fabio, 'reserved word' means that using such a word for user-defined entities is not permitted. It does not mean that Fox is required to warn you when you violate that rule, it means that if you violate it then all bets are off and the result is undefined. The actual result could be anywhere between 'works as expected' and 'blows up in your face', and it can easily vary between versions and between service packs.

The reasons for reserving a word are varied. Some words are language keywords and the reason for reserving them is obvious. System variables, system menu identifiers and system functions are compiled to special byte codes and never looked up by name except during dynamic evaluation (things like EVALUATE()). BTW, that is also the reason why VFP6 and later blow up merrily when they execute code compiled by VFP5 that contains calls to JustPath() etc. even though these Foxen have the functions built in - the interpreter just does not recognize them by name when it executes byte code. In VFP5 and earlier these functions were provided by UDFs (FoxTools.FLL).

Fox' abil to reco abbr of cert func, comm and keyw mean that all vali abbr of thes word are also rese. *g* This has always been so and cannot be changed, but I think that it should not be extended to newly added names, commands and functions.

Of course, blindly reserving the name of each and every object property or method without regard for casualties is just plain harrassment. *g*

> a good programming not use native language words

Mhmm, I don't think that a good programming language has to avoid using natural language words as keywords - but I do think that a well-designed programming language should reserve only a very small amount of words directly and explicitly (for use as language keywords) and all other reserved identifiers should be drawn from a reservoir like "all identifiers starting with an underscore followed by a letter". The situation in Fox - which has several thousand reserved words even if you count only things starting with a letter - is simply preposterous.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform