Stack versus Heap


#1

I see that there is HUGE volume on this forum, this is a mere suggestion, perhaps it is boneheaded. It is certainly aimed to help the boneheaded programmer.

I think it might be an improvement in the JUCE documentation if it were to suggest whether classes are better off being allocated on the stack or the heap.

I think JUCE and the documentation are great, it's just a suggestion. I realise given the number of classes it's quite an amount of work!


#2

There already is something like that: if the class contains a leak detector, it's likely to be used as heap allocated object.