On 24/04/2011 00:43, bearophile wrote:
     First, they impose a full word of overhead on each and every object, just 
in case someone somewhere sometime wants to grab a lock on that object. What, 
you say that you know that nobody outside of your code will ever get a pointer 
to this object, and that you do your locking elsewhere, and you have a zillion 
of these objects so you'd like them to take up as little memory as possible? 
Sorry. You're screwed.
     [I have not yet understood why D shared this Java design choice.]

Huh? D hasn't shared that design choice at all: unlike Java, D has structs which can be used for lightweight data structures... Duh.

--
Bruno Medeiros - Software Engineer

Reply via email to