On 5/8/11 8:59 AM, Timon Gehr wrote:
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?

Bug 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.

Thanks, added to the errata: http://erdani.com/tdpl/errata


Andrei

Reply via email to