Re: Inheriting Properties (or something similar) in IDLDOC [message #83153 is a reply to message #83116] |
Mon, 11 February 2013 01:43   |
tom.grydeland
Messages: 51 Registered: September 2012
|
Member |
|
|
> On 2/6/13 7:42 AM, Tom Grydeland wrote:
>> 1) Shadowed (or overridden) methods are listed. I would much prefer
>> they weren't.
On Wednesday, February 6, 2013 7:10:49 PM UTC, Mike Galloy wrote:
> 1) will take a bit more thought.
Okay, I'll bite (again).
Here is a method for DOCTREECLASS that lists a class's inherited methods, obeying inheritance order, and with methods shadowed by the class's own methods removed.
This method also exposes a bug in MGcoHashTable::values(). Whenever values had been removed so that the list for a particular bucket was empty, the expression "list->get(/all)" would return -1. This value is overwritten on the next iteration, but in my usage values are objects and -1 is not a valid value.
The fix is to replace the test on line 407 of mgcohashtable__define.pro with
if (obj_valid(list) && list->count() gt 0) then begin
> Mike
--T
|
|
|