[Laszlo-dev] For Review: Change 20080513-bargull-420 Summary: components and debugger updates

André Bargull a.bargull at intensis.de
Fri May 16 14:17:21 PDT 2008


Still got that error:

> |line unknown: Error: Implizite Umwandlung eines Werts des Typs 
> Boolean in einen nicht verwandten Typ Number, in line: return 0 + (al 
> > bl) - (al < bl)|
Implicit cast of a value from type Boolean to a not related type Number, 
[...].

> Perhaps we should file a bug with Adobe? 
Can you do that, 'cause I don't have got an account for their JIRA.


On 5/16/2008 10:39 PM, P T Withington wrote:
> Ok I approve.
>
> I'd love to know if the swf9 thing is an intentional change on their 
> part or a bug in their compiler.
>
> What if you say:
>
>   return 0 + (al > bl) - (al < bl);
>
> does it work then?  Perhaps we should file a bug with Adobe?
>
> On 2008-05-16, at 16:38 EDT, André Bargull wrote:
>
>> 1) ok, I'll change that
>> 2) yes, it's only because of swf9
>> 3) basescrollbar: LzDelegate is used -> ignore argument is needed
>>   basegridrow: can be folded in a handler [, resp. must be folded in 
>> a handler, see gridtext] ("domouseout" and "domouseover")
>>   gridtext: LzDelegate is used -> ignore argument is needed
>>
>> On 5/16/2008 8:36 PM, P T Withington wrote:
>>> I have some questions and comments:
>>>
>>> 1) You should probably use LzDebugService rather than LzDebugClass.  
>>> That is our pattern for singletons.  See, for instance, LzIdleService.
>>>
>>> 2) Why do you need to say:
>>>
>>> -        return (al > bl) - (al < bl);
>>> +        return ((al > bl)?1:0) - ((al < bl)?1:0);
>>>
>>> The comparisons should result in booleans which should coerce to 0/1 
>>> in a numeric context, so these should yield the same answer, but the 
>>> compiler would have to be much smarter to optimize your version.  
>>> Does swf9 complain?
>>>
>>> 3) In the cases where you added the ignore argument for the event 
>>> contract, is the method really needed, or could it be folded into 
>>> the body of a handler instead?
>>>
>>>
>>> On 2008-05-13, at 15:04 EDT, André Bargull wrote:
>>>
>>>> Change 20080513-bargull-420 by bargull at dell--p4--2-53 on 2008-05-13 
>>>> 20:06:32
>>>> in /home/Admin/src/svn/openlaszlo/trunk
>>>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>>>
>>>> Summary: components and debugger updates
>>>>
>>>> New Features:
>>>>
>>>> Bugs Fixed: LPP-5955 (partial)
>>>>
>>>> Technical Reviewer: ptw
>>>> QA Reviewer: (pending)
>>>> Doc Reviewer: (pending)
>>>>
>>>> Documentation:
>>>>
>>>> Release Notes:
>>>>
>>>> Details:
>>>> base/basescrollbar: add ignore-argument to match event-contract
>>>> base/basegridrow: add ignore-arguments to match event-contract
>>>> layouts/resizelayout: match superclass method signature
>>>> lz/gridtext: add ignore-argument to match event-contract
>>>> lz/floatinglist: match superclass method signature
>>>> debugger/debugger: match superclass method signature, workaround 
>>>> for swf9 "state-this" bug, update sort-function for swf9
>>>> debugger/newcontent: match superclass method signature
>>>> debugger/scrollingtext: match superclass method signature
>>>> debugger/LzDebug: update sort-function for swf9
>>>> debugger/swf9stubs: make LzDebug instance of LzDebugClass
>>>>
>>>>
>>>> Tests:
>>>> After applying the compiler changes listed at LPP-5955, you'll see 
>>>> new errors, which are covered by this changeset
>>>>
>>>>
>>>> Files:
>>>> M WEB-INF/lps/lfc/debugger/swf9stubs.lzs
>>>> M WEB-INF/lps/lfc/debugger/LzDebug.lzs
>>>> M lps/components/debugger/debugger.lzx
>>>> M lps/components/debugger/newcontent.lzx
>>>> M lps/components/debugger/scrollingtext.lzx
>>>> M lps/components/lz/floatinglist.lzx
>>>> M lps/components/lz/gridtext.lzx
>>>> M lps/components/utils/layouts/resizelayout.lzx
>>>> M lps/components/base/basegridrow.lzx
>>>> M lps/components/base/basescrollbar.lzx
>>>>
>>>> Changeset: 
>>>> http://svn.openlaszlo.org/openlaszlo/patches/20080513-bargull-420.tar
>>>>
>>>>
>>>>
>>>
>>>
>
>


More information about the Laszlo-dev mailing list