[Laszlo-dev] does the parser handle declarations of return types from functions?

Donald Anderson dda at ddanderson.com
Wed Dec 5 11:17:15 PST 2007


On Dec 5, 2007, at 1:00 PM, Henry Minsky wrote:

> Does the script compiler accept return types on functions?
>
> e.g.,
> public function setFontStyle ( fstyle:String ):void { ... }
>
> I've been putting them in the code I'm writing in as3 for the kernel ,
> and eventually will want to compile
> it with our compiler.

No it doesn't, I'll fix it.  I did types on vars and params and casually
assumed that the type syntax for function would also hang off the
identifier  setFontStyle:void () {...}   Of course that's *not* the  
way it works.

- Don


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

Voice:  617-547-7881
Email:  dda at ddanderson.com
WWW:    http://www.ddanderson.com



More information about the Laszlo-dev mailing list