[haXe] Best Practices

Gerry Fontaine gnfontaine at gmail.com
Tue Apr 3 17:57:34 CEST 2007


I am looking for a best practice for creating references to classes and 
or objects.

In the past I used eval('someString') or this['someString']
The ugly thing about using these methods was that it was not always 
reliable.
Could anyone recommend a method using haXe which would work reliably 
without using flash.lib.eval

The idea is to dynamically create references to objects and functions 
based on a mixture of  strings and objects

Examples
eval ( myClass  + 'someMethod' )( parameters );
eval ( 'firstString' + 'secondString' ).property = someValue;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnfontaine.vcf
Type: text/x-vcard
Size: 183 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20070403/cd421d75/gnfontaine.vcf


More information about the Haxe mailing list