gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9591: Replace 'new Object' with


From: Tom Stellard
Subject: Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9591: Replace 'new Object' with '{}'
Date: Wed, 8 Oct 2008 22:15:34 +0800

On Wed, Oct 8, 2008 at 4:54 PM, strk <address@hidden> wrote:
> On Wed, Oct 08, 2008 at 10:51:09AM +0200, Benjamin Wolsey wrote:
>>
>> > Should be two different opcodes there:
>> >
>> >     'new Object'
>> >     {
>> >             push 'Object'
>> >             new
>> >     }
>> >
>> >     '{}'
>> >     {
>> >             initObject
>> >     }
>>
>> That was probably my fault, as I said they were the same.
>
> We probbaly don't rely on that difference in our actionscript.all
> testcases, unless we override the '_global.Object' constructor, where
> it'd make a difference (actually, worth checking and doing that
> if we don't yet)
>
> --strk;
>
>  ()   ASCII Ribbon Campaign
>  /\   Keep it simple!
>
>

I had to substitute {} for new Object(), because there is no Object
class in Haxe, and I think this is probably the closest we can get to
creating an instance of an Object with Haxe.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]