Property discussion wrap-up
TommiT
tommitissari at hotmail.com
Wed Jan 30 14:48:10 PST 2013
On Wednesday, 30 January 2013 at 22:41:23 UTC, Timon Gehr wrote:
>> The problem of using empty struct variables is that they take
>> up memory.
>> They have to, because you can make a pointer to a variable and
>> then you
>> can dereference that variable. There has to be at least a byte
>> of memory
>> to dereference.
>>
>
> No, that is not why. The only conceivable reason empty structs
> take up space is so that different instances have different
> addresses.
Oh, thanks for clearing that up.
More information about the Digitalmars-d
mailing list