[Laszlo-dev] Is it a known bug that the swf9 back-end is discarding return-value declarations?

Donald Anderson dda at ddanderson.com
Mon Sep 22 14:33:30 PDT 2008


I don't think this was known - it should be a JIRA.

On Sep 22, 2008, at 5:12 PM, P T Withington wrote:

>>  function isArrayLike (obj:*):Boolean {
>>    if ((obj is Array) || (obj['length'] != (void 0))) {
>>      var ol = obj.length;
>>      return ((typeof(ol) == 'number' || ol is Number) &&
>>              ((ol|0) === ol) &&
>>              (ol >= 0));
>>    }
>>    return false;
>>  }
>
>
> is generating:
>
>> /* -*- file:  -*- */
>> /* -*- file: debugger/LzDebug.lzs#1119.3 -*- */
>> function isArrayLike (obj_$1:*) {
>> /* -*- file: -*- */
>> /* -*- file: debugger/LzDebug.lzs#1120.5 -*- */
>> if (obj_$1 is Array || obj_$1["length"] != void 0) {
>> /* -*- file: #1120 -*- */
>> /* -*- file: #1121 -*- */
>> var ol_$2 = obj_$1.length;
>> return (typeof ol_$2 == "number" || ol_$2 is Number) && (ol_$2 | 0)  
>> === ol_$2 && ol_$2 >= 0
>> };
>> /* -*- file: #1126 -*- */
>> return false
>> }
>
> Note no return value declaration.  This is screwing me when I try to  
> write an override in a passthrough.


--

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/20080922/0c890d7d/attachment-0001.html


More information about the Laszlo-dev mailing list