Created
October 2, 2013 09:12
-
-
Save AxGord/6791072 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
package ; | |
import neko.Lib; | |
using Main; | |
/** | |
* ... | |
* @author AxGord <[email protected]> | |
*/ | |
class Main { | |
static function main() { | |
var b:Int = 4; | |
b.bindx(); | |
} | |
static public function bindx(v:Bindable) { | |
} | |
} | |
abstract Bindable(Int) to Int { | |
function new(a:Int) { | |
this = a; | |
} | |
@:op(A + B) inline static public function add(lhs:Bindable, rhs:Int):Int return lhs + rhs; | |
@:from static public function from(a:Int) | |
{ | |
trace("from " + a); | |
return new Bindable(a); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment