[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Bug in dofile?
From:       Luiz Henrique de Figueiredo <lhf () tecgraf ! puc-rio ! br>
Date:       2000-12-27 10:50:39
Message-ID: 200012271050.IAA29814 () ibere ! tecgraf ! puc-rio ! br
[Download RAW message or body]

This is not a bug in dofile, it is just how listcode works: it returns a table 
containing the bytecode for a function. In the case of chunks, the function
is the top-level, "main" function.

For a recursive (and nicer) listing of a chunk and its functions, use luac.
listcode is for internal debugging only.
--lhf

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic