[haXe] Anonymous objects via Reflect

dan at chameleoncode.jp dan at chameleoncode.jp
Thu Aug 30 03:04:55 CEST 2007


Hi,

I was wondering if anyone could tell me how this:

var anonObj = {};

is different than:

var anonObj = Reflect.empty();


To me it seems that they should be the same but the second one allows  
me to set fields using Reflect.setField and the first does not.

Thanks!

--Dan--



More information about the Haxe mailing list