mapleelpam/programnode-translator — Issue #232: (生成代碼測試) return isFinite( value as Number ) ? value.toString() : "null";
Author: zhaoshihun
Created: 2011-10-08 06:48:18+00:00
State: open

AS)
return isFinite( value as Number ) ? value.toString() : "null";
被译为
CPP)
return (isFinite(AS(value, Number ))) ? (value->invoke("toString", false, 0 )) : ("null") ;

value.toString()爲什麽要反射來訪問？？
以下是可以正常编译的代码：
return (isFinite(*AS(value, Number ))) ?(value->toString()) : ("null") ;