OK, I figured it out. I do this:

   static public function myFunction(a : String) : String {
       var myString =  new String(a);

       var result;
       if (myString.length < 2) {
           result = "Short";
       } else {
           result = "Long";
       }
       return untyped result.__s;
   }

and now it works.

Thanks,
Asger
-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to