Haha lol.
I looked up the class hierarchy for LLVM, which is a quite large project,
and the longest chain had 9 classes.

/Emil

2012/6/18 Bruce <bbr...@paddys-hill.net>

> 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
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to