[Laszlo-dev] For Review: Change 20080701-dda-M Summary: Add script for converting 'new classname' => 'new lz.classname' in .lzx fils

P T Withington ptw at laszlosystems.com
Tue Jul 1 08:32:36 PDT 2008


There's already a script in WEB-INF/server/bin called  
convert_laslzo.pl to handle other transformations.  We are developing  
this script separately as is is a _required_ change, whereas the  
others are optional.

I'm also working on a patch to 4.0 that will emit compiler warnings  
when you refer to a class by the tag name.  This will perhaps allow a  
more graceful testing/debugging environement, since both forms are  
supported in 4.0

On 2008-07-01, at 11:26 EDT, Sebastian Wagner wrote:

> I don't know if this is just my laziness but I also got a lot of
> <method event="xyz"> </method>
> in my classes, so to replace them with
> <handler name="xyz"> </handler>
> would be quite good for users, as former LPS-Version did not throw any
> compiler warning/errors or abort the compilation process, while it  
> seems now
> to be completely forbidden.
>
> sebastian
>
> 2008/7/1 Donald Anderson <dda at ddanderson.com>:
>
>> Change 20080701-dda-M by dda at lester.local on 2008-07-01 10:35:26 EDT
>>
>>    in /Users/dda/laszlo/src/svn/openlaszlo/trunk-doc2
>>
>>    for http://svn.openlaszlo.org/openlaszlo/trunk
>>
>>
>> Summary: Add script for converting 'new classname' => 'new  
>> lz.classname' in
>> .lzx fils
>>
>>
>> New Features:
>>
>>
>> Bugs Fixed:
>>
>>
>> Technical Reviewer: ptw (pending)
>>
>> QA Reviewer: (pending)
>>
>> Doc Reviewer: seba.wagner at gmail.com (pending)
>>
>>
>> Documentation:
>>
>>
>> Release Notes:
>>
>>
>> Details:
>>
>>    Script selectively converts 'new' and 'instanceof'.
>>
>>    Documentation about usage and implementation should
>>
>>    be fully contained in script.
>>
>>
>> Tests:
>>
>>   1) ran builtin test cases:
>>
>>      $ perl WEB-INF/lps/server/bin/convert_instantiation.pl -t
>>
>>      compared changes to test files via:
>>
>>      $ sdiff /tmp/convtest{,.bak}
>>
>>
>>   2) ran on some 'real' files:
>>
>>     $ cd test; perl ../WEB-INF/lps/server/bin/ 
>> convert_instantiation.pl
>> `grep -l new *.lzx`
>>
>>     compared changes made.
>>
>>
>> Files:
>>
>> A      WEB-INF/lps/server/bin/convert_instantiation.pl
>>
>>
>> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080701-dda-M.tar
>>
>>
>>
>> --
>>
>> Don Anderson
>> Java/C/C++, Berkeley DB, systems consultant
>>
>> voice: 617-547-7881
>> email: dda at ddanderson.com
>> www: http://www.ddanderson.com
>>
>>
>>
>>
>
>
> -- 
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner at gmail.com



More information about the Laszlo-dev mailing list