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 Test; | |
class Main { | |
static function main() { | |
trace("loading cppia"); | |
untyped __global__.__scriptable_load_cppia(sys.io.File.getContent("cppia.cppia")); | |
var t3:Test = Type.createInstance(Type.resolveClass('Test2'), []); | |
t3.doTest(15); | |
} | |
} |
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
/* | |
Copyright (c) 2014 Cauê Waneck | |
All rights reserved. | |
Redistribution and use in source and binary forms are permitted | |
provided that the above copyright notice and this paragraph are | |
duplicated in all such forms and that any documentation, | |
advertising materials, and other materials related to such | |
distribution and use acknowledge that the software was developed | |
by the <organization>. The name of the |
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 LimitMinMax implements haxe.rtti.Meta | |
{ | |
public var max:Float; | |
public var min:Float; | |
public function new(max, min) | |
{ | |
this.max = max; | |
this.min = min; | |
} |
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
@:generic class Array<T> | |
{ | |
private var arr:NativeArrayWrapper<T>; | |
public function new() | |
{ | |
arr = new NativeArrayWrapper<T>(0); // this will be automatically replaced | |
} | |
public function get(x:Int):T | |
{ |
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
@:generic class NativeArrayWrapper<T> | |
{ | |
public var cls(default, null):Class<T>; | |
public function get(idx:Int):Dynamic { return throw "not implemented"; } | |
public function get_f(idx:Int):Float { return get(idx); } | |
public function set(idx:Int, v:Dynamic):Dynamic { return throw "not implemented"; } | |
public function set_f(idx:Int, v:Float):Float { return set(idx, v); } | |
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 Main | |
{ | |
static function main() | |
{ | |
trace("Hello, Blog!"); | |
} | |
} |
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 Main | |
{ | |
static function main() | |
{ | |
trace("Hello, Blog!"); | |
} | |
} |