On Fri Jul 22 14:25:06 EDT 2011, [email protected] wrote: > On Jul 22, 2011, at 1:53 PM, erik quanstrom <[email protected]> > wrote: > > can you give am example where // comments with ' cause trouble. i > > can't replicate. > > > My guess is that he is not referring to 8c et al but too pcc. That > means something like: > > // I can't replicate > > Becomes an error. Many classic UNIX[-like] preprocessors will > diagnose it as an error as it's pre-ANSI processing
i think that's pretty much it. the original claim was that yacc had troubles, but i don't see a problem. in fact a quick read of the code says that yacc is clean. however, cpp if not given the -+ option will not recognize c++ comments (see fixlex()), and is sure that ' is to be interpreted as in c. therefore, it does tend to do strange things if it can't match 's. why does go need cpp? is the go source that littered with preprocessor gnarlies? that would be a big dissapointment. - erik
