This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++ "with" keyword
- From: dewar at gnat dot com (Robert Dewar)
- To: ates100 at web dot de, gcc at gcc dot gnu dot org
- Date: Sat, 4 Jan 2003 15:04:59 -0500 (EST)
- Subject: Re: c++ "with" keyword
> using the method you proposed will possibly degrade the code, wheras using
> macros (and "with" should be implemented into the cpp) has never any runtime
> penalties.
Either may degrade the code, you have no idea. Neither should have any
significant penalty.
No, WITH absolutely can not be done using CPP, this is a horrible suggestion,
since fairly subtle visibility analysis is required, particularly with
respect to detecting and rejecting ambiguous references. So the processing
of WITH would be part of the static semantic processing.