[haXe] Templo "set" syntax?

Laurent Bedubourg lbedubourg at motion-twin.com
Wed Jan 24 14:13:00 CET 2007


Rickard Nilsson wrote:
> Hi,
> 
> I wonder what expressions you can have in the templo "set" command? I 
> want to assign a list to a variable, and tried both ::set li = 
> ["1","2","3"]:: and ::set li = $array("1","2","3")::, but neither seems 
> to work?
> 

Hi,

The problem does not come from ::set:: but from the [1,2,3] expression 
which is not understood by the Templo parser.

Thanks for the report I will fix this soon.


Note concerning $array() :

Templo does not know $array, in Templo you can only use vars and 
functions defined in the execute context.

Anyway, an haxe array is a wrapper and $array() would not return 
something usuable.

Regards
Laurent
-- 
Laurent Bedubourg
lbedubourg at motion-twin.com
http://www.motion-twin.com



More information about the Haxe mailing list