Feature Request: make void a value type

downs default_357-line at yahoo.de
Mon Dec 3 09:03:45 PST 2007


Matti Niemenmaa wrote:
> downs wrote:
>> Problems: * With void.sizeof being 0, void is the only type where an array
>> has completely different properties than the original type. I'm not sure
>> whether this really is a problem.
> 
> void.sizeof is 1, so there's even less of a problem than you think.
> 

Okay, but the thing is, I wouldn't want a void variable or parameter or AA entry to take up any space at all. So void.sizeof probably would have to be zero for this to be consistent. Not sure.

>> What do you think?
> 
> I've been wanting this for a while and I'd love to see it happen.
> 

Yay! :D



More information about the Digitalmars-d mailing list