[Gambas-user] How do I override an Array class?

Bruce bbruen at ...2308...
Mon Jun 18 14:46:19 CEST 2012


On Mon, 2012-06-18 at 14:32 +0200, Emil Lenngren wrote:
> Even if most projects don't need more than depth 16, there might be some
> very large projects (like Bruce's) that need it. Even well-designed
> projects can have a large class tree.
> 
> And it is relatively easy to make that algorithm max depth-independent.
> First see at what depth the current class is at, then declare a
> variable-size array (directly on the stack, not with malloc) with the depth
> as size, then fill it with all parents.
> 
> /Emil
> 
(Very quietly and humbly.)
If the limit was 8 instead of 16 then I would only be in half the mess
I'm in now!
Just joking  :-)
Bruce





More information about the User mailing list