gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9602: Replace [object Dynamic] with


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9602: Replace [object Dynamic] with [object Object]
Date: Fri, 10 Oct 2008 22:48:51 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9602
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Fri 2008-10-10 22:48:51 +0800
message:
  Replace [object Dynamic] with [object Object]
modified:
  testsuite/actionscript.all/haxe-swf9/as_to_hx.pl
=== modified file 'testsuite/actionscript.all/haxe-swf9/as_to_hx.pl'
--- a/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-09 17:35:30 
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-10 14:48:51 
+0000
@@ -227,8 +227,16 @@
                next;   
        }
 
+       #CHECK 6 - Must run before CHECK 7
        #Replace refrences to Object type with Dynamic.
-       $_  =~ s/(\W)Object(\W)/$1Dynamic$2/g;  
+       $_  =~ s/(\W)Object(\W)/$1Dynamic$2/g;
+
+       #CHECK 7 - Must run after CHECK 6
+       #Replace [object Dynamic] with [object Object]
+       #This undoes some of the changes made by CHECK 6.  We need to do this 
because
+       #even though there is no Object class in Haxe, when variables of type 
Dynamic are
+       #compiled int byte code, they become an Object.
+       $_ =~ s/\[object Dynamic\]/[object Object]/g;
 
        #Remove calls to ASSetPropFlags.  I can't find a Haxe equivilent.
        if($_ =~ /ASSetPropFlags/){


reply via email to

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