April 17, 2007 Re: D vs. placement new (for classes) aka why D needs .sizeof and | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | Lars Ivar Igesund Wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1023
Ooo.. nifty. A link!
If indeed we enumerated the properties in the same way that we enumerated variadic arguments in a function, then we could very reasonably write our own interface checking for structs, and someone could release a template that performed checking quite readily; with debug{} else{} thrown into the template, it could do very well indeed!
Sincerely,
Dan
|
Copyright © 1999-2021 by the D Language Foundation