Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#Define oddity
Message
 
 
To
12/12/2004 10:42:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968604
Message ID:
00968618
Views:
9
Hi Gregory,

I think you found a bug that still exist in VFP9. See code below
CLEAR
release aa
#define	ALINEDEFINED aa = aa
a=1
#define aa a
ALINEDEFINED
* The next two line should display the same
? [ALINEDEFINED]	&& aa = a  - Bug
? [aa = aa]		&& a = a   - correct
?vartype(aa), 'should be U', '  Error'
>
>Anyone can reproduce / explain the code below ?
>
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform