Simple catch of local names

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Simple catch of local names

Rodrigo Azevedo
All <toclose> are ‘local’ and <const>. Could it be simplified?

local x, <y>, z, <k> = ....

The <Name> are ‘<const>‘ and, when out of scope, checked by a possible __catch ?

For common cases values (numbers, strings etc) the __catch and respective vm instruction, can be avoided, as expected.


Rodrigo Azevedo Moreira da Silva