"whos -all" and "who -all" fail

John W. Eaton jwe at bevo.che.wisc.edu
Tue May 6 05:00:13 CDT 2008


On  5-May-2008, David Bateman wrote:

| > If it is just debugging, would it be OK to have the following
| >
| >   -- vector_of_scope_ids = __dump_symbol_table__ ("scopes")
| >
| >     Return a vector of all scope ids currently in use in the symbol
| >     table.
| >
| >   __dump_symbol_table__ (scope)
| >
| >     Print a detailed listing of all information in the symbol table
| >     for the scope id SCOPE.
| >
| >   __dump_symbol_table__ ()
| >
| >     Print a detailed listing of all information in the symbol table
| >     for all scopes.
| >   
| 
| Yes something like that would give all of the information I need :-)

OK, I added the following functions

  SCOPE_ID = __current_scope__ ()

  __dump_symtab_info__ ()
  __dump_symtab_info__ (SCOPE_ID)
  __dump_symtab_info__ ("functions")
  SCOPE_IDS = __dump_symtab_info__ ("scopes")

This took a lot longer than I thought it would (maybe that's why I
punted before).  OTOH, I think I found and fixed a few more bugs in
the symbol table code, so maybe there was some progress.

I'm not sure the interface or format is as useful as it could be.
Feel free to improve it.  I'm done with it for now.

jwe


More information about the Octave-maintainers mailing list