[Changeset] make symbol_table:; find_function also find class specific functions

John W. Eaton jwe at bevo.che.wisc.edu
Mon Sep 29 17:17:18 CDT 2008


On 28-Sep-2008, David Bateman wrote:

| Matlab allows thing like
| 
| help @myclass/myfunc
| type @myclass/myfunc
| dbstop @myclas/myfunc
| 
| to work and give the help, text and set the breakpoints in the class 
| specific version of a function. The obvious change to allow this is tho 
| change the symbol_table::find_function methods such that if the first 
| character of the function name being looked for is "@" then it is 
| assumed to be a class specific method that is requested and return that 
| regardless of the arguments passed to the function.
| 
| This works for the help, type etc command and sets the breakpoints 
| correctly, as dbstatus returns the positions of the newly set 
| breakpoints. However the code doesn't break correctly yet in the class 
| specific method, and I'm not sure why. Any ideas?

I applied the changeset.

Setting breakpoints in class methods worked for me, but not class
constructors.  I think the following change should fix that problem.

Thanks,

jwe


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080929/5752e271/attachment.ksh 


More information about the Octave-maintainers mailing list