Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crash Bug: a right recursive #DEFINE and compile crash
Message
From
25/05/2004 11:00:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Crash Bug: a right recursive #DEFINE and compile crash
Miscellaneous
Thread ID:
00906942
Message ID:
00906942
Views:
45
If you #define a recursive Definition you can go into a compiler overrun crash.

Example:
compile this prg and run
#define A A+

? [A] && result is a correct A+
compile this -> crash
#define A +A

? [A] && result is a ++++++++++++++++++.....
cause: preprocessor parser pointer is incremented by 1 ( cPointer++ )

Correct alghoritm is that used into STRTRAN()
? strtran('A','A','+A')
Fabio
Reply
Map
View

Click here to load this message in the networking platform