[Laszlo-dev] Plan for parameter type declarations in the LFC API
P T Withington
ptw at pobox.com
Fri Apr 25 13:24:49 PDT 2008
The swf9 back end will drop all parameter type declarations in the
In debug mode, the swf9 back end will pass through type declarations
(so they can be checked and debugged). For the time being, all other
debug annotations will be turned off in the LFC as they do not
currently work for swf9.
This should allow the most LZX code to run the soonest, while still
allowing the LFC developers to annotate.
The compile-time model of classes knows the signatures of all
methods. When an LZX definition overrides another method but does
_not_ declare any parameter types: the tag compiler will rewrite the
LZX parameters to match the number, type, and defaulting of the
overridden method. If the LZX definition _does_ declare parameter
types, the parameters will not be adjusted in any way.
Thus, when prototyping, you can leave off types and your code will
work. When moving to production, you can declare types for better
More information about the Laszlo-dev