Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler does not catch this syntax error, bug?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901990
Message ID:
00902733
Views:
20
Hi Dawa,

>Hi, Frank,
>
>Thank you for the reply.
>
>That was a good one!

I like to solve logical puzzles, so I loved to come up with a 'solution'

>I was trying to think also from a compiler designer's perspective. It would be easier to handle or check for errors in the following manner:
>
>if the statement has macros
>then igore it
>else check
>
>than:
>if the statement has macros
>then check for detectible syntax errors
>else do normal checking

Unfortenately, there are too many situations that the parser can't control with a Macro substitution, personally I would not try to bother. For instance your code looked like a 100% winner for producing an error but it wasn't. But what if the parser insisted it was a 100% faillure, no thanks.

And I think that all the others are correct, only use Macro substitution only when needed. A lot of times, there are better alternatives.

>Dawa

Regards,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform