Package: haxe
Version: 20060912-2
Severity: normal

haxe works for versions 7-9 but fails for version 6, as in the
following example:

----------------------------------------------------------------------
[EMAIL PROTECTED]:/tmp$ cat Hello.hx Hello.hxml 
class Hello {                                                                
    static function main() {                                                 
       trace("Hello haXe !");                                                
    }                                                                        
}                                                                            
-main Hello
-swf Hello.swf
[EMAIL PROTECTED]:/tmp$ haxe -swf-version 6 Hello.hxml
/usr/share/haxe/flash/Boot.hx:115: characters 11-15 : {+ length : Int } should 
be ArrayAccess<+Unknown<0>>
----------------------------------------------------------------------

Line 115 occurs in the following function:

        #if flash6
        private static function __interfLoop(cc : Dynamic,cl : Dynamic) {
                if( cc == null )
                        return false;
                var intf = cc.__interfaces__;
                for( i in 0...intf.length ) {
                        var i = intf[i];
                        if( i == cl || __interfLoop(i,cl) )
                                return true;
                }
                return __interfLoop(cc.__super__,cl);
        }
        #end

I have not found a fix, although replacing the expression intf.length
with a number (10) made it work.  Perhaps someone who knows what they're
doing could fix this.

Thanks,
Bake



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages haxe depends on:
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries
ii  zlib1g                       1:1.2.3-13  compression library - runtime

haxe recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to