bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: With a wacky macro before it, 'global' appears to miss a function


From: Marc Herbert
Subject: Re: With a wacky macro before it, 'global' appears to miss a function
Date: Wed, 27 Apr 2011 15:14:46 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9

Le 26/04/2011 13:44, Shigio YAMAGUCHI a écrit :
> For this issue, it seems that complex rules complicate the problem
> more and more. Because, using macros, programmers can make many things
> which look like function declaration. It is difficult for us to treat
> all of them.

I fully second that. Macros should only be considered on a "best
effort" basis. 

Since it is possible to do anything with macros, including the most
insane things, a 100% parsing success rate is impossible in the
presence of unusual macros (except by calling or re-implementing the
pre-processor itself). Global parsing rules should stay few and simple
enough so users can still understand them, and to avoid bugs. If that
allows "wacky" macros to eat some symbols then so be it. Global is a
great tool but people should still know how to use "grep" for corner
cases.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]