param2 = param1

Jacob Carlborg doob at me.com
Wed Aug 28 00:17:46 PDT 2013


On 2013-08-27 23:51, Andrej Mitrovic wrote:

> Personally I think a much more useful feature would be (and this
> doesn't block this feature but it's related to default arguments):
>
> struct S
> {
>      void foo(int x = this.y)
>      {
>      }
>
>      int y;
> }

I agree, I've wanted this a couple of times.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list