One flaw in thus idea: many times the argument to new will be a
parameter of the class, so you have to skip all the class attributes
too. That may make searching for only the defined class names a better
choice of algorithm.
On Jun 30, 2008, at 13:59, P T Withington <[EMAIL PROTECTED]> wrote:
The only 'native' classes that you might say `new *` or `x
instanceof *` about are:
Object, Array, String, Number, or Boolean.
So we should be able to add to the conversion script that if you see
`new *` or `x instanceof *` and * does not start with lz. and is not
one of the five native classes above, you should rewrite it to lz.*.
We also need to cover the case `new global[*]` needs to become `new
lz[*]`.
Icing on the cake would be to replace instances of the LFC class
names with their tagname, e.g., (LzView becomes lz.view).