TDPL error(s)
Timon Gehr
timon.gehr at gmx.ch
Sun May 8 06:59:02 PDT 2011
On page 263, TDPL states that struct objects nested inside a function cannot
be returned, because the caller does not have access to their types. Using the
auto keyword, DMD lets you do this though. Is this a bug in DMD or an error in
TDPL?
On the same page, the assert should be
assert(Local.sizeof == size_t.sizeof + int.sizeof);
rather than
assert(Local.sizeof == 2*size_t.sizeof);
which always fails in 64 bit.
Timon
More information about the Digitalmars-d
mailing list