Re: a nifty feature for c preprocessor‏

2011-12-29 Thread Robert Dewar

On 12/28/2011 6:25 PM, R A wrote:


that all being said, i really don't think it's a hard feature to
implement like i said, just whenever there is an 1) evaluation in
the conditional directives or 2) #define is called, look for "eval",
if there, evaluate the expression, then substitute token.


It will definitely be harder than you think. Lots of changes like
this are easy enough when described at a high level of abstraction,
but the implementation details are complex.

And I agree with others, this is an undesirable extension to the
language regardless of difficulty of implementation.


it'll just take me a long time to know how to work with setting all
the flags, attributes, and working with the structs, so it's hard for
me to do by myself.


I discourage the effort, I don't think the result, even if you do
achieve a working version, would ever be accepted. Better to spend
your effort figuring out more appropriate ways to solve the problem.


Re: a nifty feature for c preprocessor‏

2011-12-28 Thread R A

that all being said, i really don't think it's a hard feature to implement 
like i said, just whenever there is an 1) evaluation in the conditional 
directives or 2) #define is called, look for "eval", if there, evaluate the 
expression, then substitute token.

the rest of the needs no tampering at all. libccp's implementation is great, 
neatly divided. probably have to edit only half a dozen files, at most  -- at 
least from what i can tell from scanning the the code.

it'll just take me a long time to know how to work with setting all the flags, 
attributes, and working with the structs, so it's hard for me to do by myself.