abstract Getter<T> from T->Void
var v : T
The return value of this Getter
this
function get():T
Invokes this Getter, and returns it's value
static macro function create<T>(e : ExprOf<T>):ExprOf<Getter<T>>
Macro for creating Getters
package ; import tannus.io.Getter class Main { /* Executed with the command-line argument 'Hello' */ public static function main():Void { var args = Sys.args(); var first:Getter<String> = Getter.create(args[0]); trace( first ); // 'Hello' } }
There was an error while loading. Please reload this page.