lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy wrote:
> 
> One way around this limitation is to nest
> the function definitions inside other functions, as the limit is per function:
> 
> function createStr ()
>   Str = {}
>   function Str:disp () end
>   function Str:pack () end
>   function Str:unpack (s) end
>   function Str:clear () end
>   function Str:size () end
>   function Str:new (dim) end
> end
> 
> function createNum ()
>   ...
> end

Thanks to both of you.  I keep marveling at the flexibility of this
language.
-- 
    Tore