Created
February 1, 2016 05:03
-
-
Save AxGord/d0a9df3c367440b1fb19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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