Created
December 3, 2015 17:03
-
-
Save tanitta/5f1ffd961c48855595fb to your computer and use it in GitHub Desktop.
load_delegate
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
| import armos; | |
| import std.stdio; | |
| class Hoge{ | |
| void func(void delegate() f){ | |
| f(); | |
| } | |
| } | |
| class TestApp : ar.BaseApp{ | |
| auto hoge = new Hoge; | |
| void mouseMoved(int x, int y, int button){ | |
| hoge.func((){"hoge".writeln;}); | |
| } | |
| } | |
| void main(){ar.run(new TestApp);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment