[OT] Finding longest documents

Christopher Wright dhasenan at gmail.com
Tue Oct 14 16:54:53 PDT 2008


Actually, I STRONGLY urge that nobody use this heap.

It's a struct. If you access it by value and append to it, then access 
it from any other alias, you will erase a random element from the heap.

If it were a class, this would not be possible. As I implemented it, it 
would not be possible.

Containers as value types is such an idiotic idea for precisely this reason.



More information about the Digitalmars-d mailing list