Walter & Andrei: @property
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 16 11:55:05 PDT 2015
On Thursday, 16 April 2015 at 14:40:38 UTC, John Colvin wrote:
> For cross-referencing purposes, an unpleasant consequence of
> the current situation:
> http://forum.dlang.org/post/rfrhuipeaoswqsunutal@forum.dlang.org
struct Foo {
bool registered = false;
void register(bool x) @property {
writeln("Registering ", x);
register = true;
}
}
Like this?
More information about the Digitalmars-d
mailing list