Thanks, it sure works. Yet... I have allways thought that 1;
was a valid expression ^^. Well it is for MMC, and it is not for MTasc, as it is not for Java. I initiated a debate tonight with Cedric TABIN and another friend of mine on whether "1" as an axiom was a valid instruction in a formal language. Well they do not agree. Therefore I did some tests :p 1; is valid for gcc in c and c++ (well, my dev-c++ did not see any error to be honest), PHP and MMC 1; is not valid for java, Ada and MTasc sigh... I do not have my answer. Well, anyway, if 1; is valid, org.aggelos.smpkg.SomeClass; should be valid too ^^ Nicolas, was it a choice of yours to have this difference between MTasc and MMC or did it not appear intellectualy satisfying when you thought the grammar for MTasc ? I'd greatly appreciate your point of view on the question. Yours, Clément 2005/9/26, Tim Knip <[EMAIL PROTECTED]>: > Clement, > > 'org.aggelos.somepkg.MyClass' in main... > > Try: var a:org.aggelos.somepkg.MyClass; > > (and you probably need to add an 'import org.aggelos.somepkg.MyClass;' to > your code... > > What you now have in main() is AFAIK indeed invalid and bound to make MTASC > complain... > > Tim K > > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens > Clement ARNOUX > Verzonden: maandag 26 september 2005 22:10 > Aan: Open Source Flash Mailing List > Onderwerp: [osflash] [MTasc] Invalid expression ???? > > Hi all, > > is it normal that when trying to compile that : > class Test { > > public static function main() : Void { > org.aggelos.somepkg.MyClass; > } > } > > MTasc returns an Invalid Expression parse error ? > Looks quite valid to me ~_~, since that is quite the kind of > expressions which is recommended to create external libraries > > Thanks for any answer > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
