This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: totally insane


Jim Blandy <jimb@red-bean.com> writes:

> Please excuse my ignorance, but can someone tell me whether the code
> here, inside the "#ifdef __cplusplus" conditional, is actually valid
> C++?
> 
> If so, that is some of the strangest syntax I've ever seen --- can you
> really put a conditional which tests the values of macro arguments on
> the *outside* of the macro?  The scope of a macro's arguments extends
> beyond its definition...

It's completely broken-- I sent email about this a long time back when I 
was first complaining about using guile w/ C++.

See:

http://www.red-bean.com/guile/guile/2941.html

from the archive.

> Or was the author just feeling Martian that day?

Must be.  It's the weirdest attempted use of the preprocessor I've ever
seen!

Greg