[Laszlo-dev] For Review: Change 20080808-dda-K Summary: SWF9: allow class and global var names to differ only in case.

Donald Anderson dda at ddanderson.com
Fri Aug 8 11:47:32 PDT 2008


Change 20080808-dda-K by dda at lester.local on 2008-08-08 14:28:43 EDT
     in /Users/dda/laszlo/src/svn/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: SWF9: allow class and global var names to differ only in case.

New Features:

Bugs Fixed: LPP-6792 (class 'Foo' and top level var 'foo' cannot  
coexist in SWF9 programs)

Technical Reviewer: ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
     Use subdirectory naming as discussed in LPP-6792 to distinguish  
class names and variable names.
     We also allow classes and variable names to be the same (var foo  
= new foo()), as flex seems to accept this.
     More details on the implementation contained in javadoc for the  
changed files.

Tests:
     Regression: smokecheck (swf8+dhtml), (lzpix+weather) 
(swf8+swf9+dhtml)

     Temporarily added the following test code to LzNode.lzs, and  
verified that produced output files
     end up in the right subdirectories:

========
class Global1 {
   public function x() {}
}

class GLOBAL2 {
}

class GLOBAL3 {
}

class global2 {
}

var Global1 = 6;
var GloBal1 = -1;
var global1 = 7;
//var global1 = 8;  // should give an error

class global1 {
   public function y() {}
}

//class global1 {}  // should give an error

var foo = new global1();
foo.y();

class global3 {
}
class Global1 {
========


Files:
M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/TranslationUnit.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080808-dda-K.tar



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080808/c57d74a1/attachment.html


More information about the Laszlo-dev mailing list