@property - take it behind the woodshed and shoot it?
Robert
jfanatiker at gmx.at
Thu Jan 24 14:53:09 PST 2013
Yeah, I thought of that and the compiler can optimize it away if not
needed. So this would be fine, but see my second, improved proposal.
On Thu, 2013-01-24 at 23:37 +0100, Adam D. Ruppe wrote:
> Indeed, but there's an easy alternative too that works with both
> kinds of data, properties and regular: wrapping it in an function
> at the usage site, e.g. "(a) => myProp = a;"
More information about the Digitalmars-d
mailing list