octave-maintainers
[Top][All Lists]
Advanced

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

Re: "whos -all" and "who -all" fail


From: John W. Eaton
Subject: Re: "whos -all" and "who -all" fail
Date: Tue, 06 May 2008 06:00:13 -0400

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]