assert() vs. enforce(), invariant() vs. ... ?

Jacob Carlborg doob at me.com
Thu Aug 29 23:34:57 PDT 2013


On 2013-08-29 23:16, Joseph Rushton Wakeling wrote:

> No, I mean std.typecons.Proxy:
> http://dlang.org/phobos/std_typecons.html#.Proxy
>
> The point is that std.typecons.Proxy _just_ wraps the underlying type;
> it doesn't, so far as I can see, allow you to define extra functionality
> that must be implemented whenever a public method of the underlying type
> is called.

Oh, that Proxy. What's the point of it? The example looks like just an 
"alias this".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list