@property on free function for UFCS?

rcorre via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 14 05:26:52 PDT 2015


Suppose I have a function defined like so:

void foo(int i) { }

intended to be called like:

5.foo

Should it be labeled with @property?
Or is @property only for true member functions?


More information about the Digitalmars-d-learn mailing list