On Sun, 14 Jun 2015 12:26:52 +0000, rcorre wrote: > 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?
only if you plan to use it like `foo = 5;`. i.e. exactly like field/ variable. compiler will not complain, but putting `@property` here is stylistically wrong.
signature.asc
Description: PGP signature