My Meeting C++ Keynote video is now available

Jacob Carlborg doob at me.com
Tue Jan 15 18:39:18 UTC 2019


On 2019-01-15 12:53, Walter Bright wrote:

> Template expressions can't, either, but what they do is hijack the 
> syntax for completely different purposes. The poor reader will be 
> looking at code, and it will behave nothing like the syntax suggests.

Ah, you mean like this:

struct MyInt
{
     private int value;

     MyInt add(MyInt other)
     {
         return MyInt(value - other.value);
     }
}

Perhaps we shouldn't support user defined types or functions either ;)

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list