LWN.net Logo

C++, the steampunk language

C++, the steampunk language

Posted Sep 14, 2009 16:21 UTC (Mon) by avik (subscriber, #704)
In reply to: C++, the steampunk language by tjc
Parent article: Writing kernel modules in Haskell

delete[] needs to call the destructors of every element of the array, so it needs to know it is destroying an array.


(Log in to post comments)

C++, the steampunk language

Posted Sep 14, 2009 16:30 UTC (Mon) by nye (guest, #51576) [Link]

Note that there is a bit more to it than that, otherwise it would be okay to use delete on an array of POD types, which it isn't (see my other post). That's undoubtedly the root reason though.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds