Skip to content

Instantly share code, notes, and snippets.

@AxGord
Created February 1, 2016 05:03
Show Gist options
  • Select an option

  • Save AxGord/d0a9df3c367440b1fb19 to your computer and use it in GitHub Desktop.

Select an option

Save AxGord/d0a9df3c367440b1fb19 to your computer and use it in GitHub Desktop.
class LinkDemo implements pony.magic.HasLink {
static var index:Int = 5;
static var visualIndex(link, never):String = Std.string(index + 1);
static function main() {
trace(visualIndex);//=>6
index = 10;
trace(visualIndex);//=>11
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment