Closed sonygod closed 11 years ago
case I want to put all args into one array in forward.hx;
var argsRemoting = callArgs.slice(0, callArgs.length - 1); argsRemoting.push( { id:id, name:name } .toExpr() ); var argsRemoting2 = []; argsRemoting2.push(argsRemoting);
var call = callExpr.substitute( { "$argsRemoting":argsRemoting2.toArray(), "$args": callArgs.toArray(), "$id": id.toExpr(), "$name": name.toExpr() });
///-----------------------------------------
"$argsRemoting":argsRemoting2.toArray(),//this is error and throw src/tink/lang/macros/Forward.hx:138: characters 19-40 : Array<Array> has no field toArray
how to fixed?thanks
I use other way to get the same result,
case I want to put all args into one array in forward.hx;
var argsRemoting = callArgs.slice(0, callArgs.length - 1); argsRemoting.push( { id:id, name:name } .toExpr() ); var argsRemoting2 = []; argsRemoting2.push(argsRemoting);
///-----------------------------------------
"$argsRemoting":argsRemoting2.toArray(),//this is error and throw src/tink/lang/macros/Forward.hx:138: characters 19-40 : Array<Array> has no field toArray
how to fixed?thanks