Challenge

Manu via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 3 06:41:13 PDT 2016


I'm finding this rather annoying:

struct S
{
  static @property int p() { return 10; }
}

pragma(msg, typeof(&S.p)); // prints: int function() @property
pragma(msg, is(typeof(&S.p) == function)); // prints: false

It looks like a function... but I can't identify it as a function!


More information about the Digitalmars-d mailing list