dmd 1.073 and 2.058 release

Ali Çehreli acehreli at yahoo.com
Wed Feb 15 14:07:23 PST 2012


On 02/15/2012 07:49 AM, bearophile wrote:
> Andrej Mitrovic:
>
>> That doesn't seem to work. So does anyone know what exactly is implemented?
>
> I don't know. See:
> https://github.com/D-Programming-Language/dmd/pull/582
>
> Bye,
> bearophile

Is UFCS DOA? Here is my experiment:

struct S
{}

@property int foo(S)
{
     return 42;
}

void main()
{
     auto s = S();
     s.foo();       // Error: no property 'foo' for type 'S'
}

Ali


More information about the Digitalmars-d-announce mailing list