Beta D 2.069.0-b1

anonymous via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Oct 8 09:07:09 PDT 2015


On Thursday 08 October 2015 16:34, anonymous wrote:

> On Thursday 08 October 2015 06:14, extrawurst wrote:
> 
>> `The -property switch has been deprecated.` Does that mean 
>> @property has no effect anymore ?
> 
> Yes.

Correction: @property has at least one effect without -property. typeof acts 
differently on properties vs non-properties.

----
struct S
{
    @property int p();
    int n();
}
pragma(msg, typeof(S.init.p)); /* int */
pragma(msg, typeof(S.init.n)); /* int() -- i.e. a function */
----

I wasn't aware of this before Jonathan M Davis told me [1]. I don't think 
it's specified anywhere, at least I can't find anything.

[1] https://github.com/D-Programming-Language/dlang.org/pull/1119#issuecomment-146576866


More information about the Digitalmars-d-announce mailing list