[mtasc] Strict, Objects and Arrays

Martin Schnabel mb0 at mb0.org
Thu Oct 20 04:42:28 CEST 2005


have u tried yourself ?
it works in mtasc. it not complains in strict mode anymore.
does it create corrupted byte code ? or does it not work in mmc ?

best regards
    Martin Schnabel

Robert Edgar wrote:

>Because AS2 doesnt support casting of Arrays.
>
>-----Original Message-----
>From: mtasc-bounces at lists.motion-twin.com
>[mailto:mtasc-bounces at lists.motion-twin.com] On Behalf Of Martin Schnabel
>Sent: Wednesday, October 19, 2005 1:53 PM
>To: MotionTwin ActionScript2 Compiler List
>Subject: Re: [mtasc] Strict, Objects and Arrays
>
>
>Robert Edgar wrote:
>
>  
>
>>This wont compile as it says that v should be of type Array but 
>>obviously I cant cast v to an Array.
>> 
>>
>>    
>>
>why cant u do a cast? i maybe dont understand your problem ... try this or
>discribe why u cant cast ...
>
>public function set data(v:Object):Void{
>	if(v instanceof Array) list = Array(v);
>}
>
>sorry if i havent understood the problem
>
>best regards
>	Martin Schnabel
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/mtasc/attachments/20051020/94e2cfa4/attachment-0003.htm


More information about the mtasc mailing list