[haXe] Anonymous objects via Reflect

Ian Liu ian.liu88 at gmail.com
Thu Aug 30 03:24:47 CEST 2007


I think Nicolas once said that var a = {} is interpreted as a block, not an
object.

On 8/29/07, dan at chameleoncode.jp <dan at chameleoncode.jp> wrote:
>
> 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--
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070829/b2b3fffe/attachment-0001.htm


More information about the Haxe mailing list