DIP 50 - AST macros

Jacob Carlborg doob at me.com
Wed Nov 13 23:37:44 PST 2013


On 2013-11-14 01:16, Walter Bright wrote:

> Yes. But that's a good thing. I'd be pretty skeptical of the value of an
> AST macro that took 3+4 and changed it so it did something other than
> compute 7.

You can still do stupid things like that with operator overloading. Not 
on built-in types, but on user defined types. Every language allows you 
to do stupid things, one way or another.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list