[Top][All Lists]

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

Re: [Gnash-commit] /srv/bzr/gnash/trunk r11006: create two arrays of ini

From: Benjamin Wolsey
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r11006: create two arrays of init functions, one for as2, and one for as3.
Date: Fri, 05 Jun 2009 22:11:44 +0200

>   create two arrays of init functions, one for as2, and one for as3.

I don't think it's necessary to do this, as the same function can be (at
the moment will be) used for both versions. There's currently no way at
all of calling a different function according to the AVM version, and
it's possible to check within the init function itself whether it's
called from AVM2 or AVM1 and pick the correct version like that.

The way to have both versions simultaneously (for mixed version runs)
will probably be to have two separate Global objects. Anyway, the logic
should likely be before the init function is called, so it's quite
possible to use the same one.

There also isn't much need to keep the static member init() functions,
because not all headers should have the class definition. It would be
simpler just to switch all methods to the *_class_init() version.


The current release of Gnash is 0.8.5

Benjamin Wolsey, Software Developer -

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

reply via email to

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