1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | static void Kishor_testClassBuild(Args _args) { ClassBuild classBuild; ClassNode classNode; Str myCode; ; myCode = @" static void Main(Args _args) { ; info('Hello World!'); } "; classBuild = new ClassBuild("MyTest", false); classBuild.addMethod("Main", myCode); classNode = classBuild.classNode(); classNode.AOTcompile(); classNode.AOTrun(); } |
Note: The SysDictClass/SysDictMethod-class can also help you creating proper classes and methods. Maybe I’ll blog about this later.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.