LWN.net Logo

C#/Java have destructors...

C#/Java have destructors...

Posted Mar 30, 2005 13:44 UTC (Wed) by TImaniac (guest, #28862)
In reply to: C#/Java have destructors... by phgrenet
Parent article: Evidence that Python is advancing into the enterprise (NewsForge)

In C# you can allocate a struct on the stack instead of the heap : this struct are value-types but inherit from Object.
if you need temporary stack memory, there is also a stackalloc keyword.


(Log in to post comments)

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