[haXe] Anonymous objects via Reflect

Franco Ponticelli franco.ponticelli at gmail.com
Thu Aug 30 11:28:42 CEST 2007


Yes and its value is Void and not an object.

On 8/30/07, Ian Liu <ian.liu88 at gmail.com> wrote:
>
> 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
> >
>
>
> --
> 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/20070830/9e1de9f1/attachment.htm


More information about the Haxe mailing list