On Sun, 17 May 2009 20:56:14 -0500, Andrei Alexandrescu wrote: >>> Andrei Alexandrescu Wrote: >>> >>>> I think "with" is a very dangerous feature due to the way it hides >>>> symbols. >> Jason House wrote: >> This. Just issue an error/warning if something in the with shadows >> something outside. That way, if the struct/class/template/whatever >> changes, affected code will be notified. On Sun, 17 May 2009 20:56:14 -0500, Andrei Alexandrescu wrote: > No warning, error! > > This is a great idea Jason.
Wow, that's they way I thought it already worked. I never use 'with' because of the reasons that Andrei has already cited, but if it doesn't trip such syntax-mines already then I'm even more glad that I haven't used it. So yes Jason, that idea has my support too ... though I still can't see me using the construct anytime soon. -- Derek Parnell Melbourne, Australia skype: derek.j.parnell