Three Unlikely Successful Features of D

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Mar 20 20:51:17 PDT 2012


On 3/21/12, Walter Bright <newshound2 at digitalmars.com> wrote:
> Andrei discovered an amazing use of auto.

It's funny how the book explicitly stated that this doesn't work (page 263):
"Nested struct objects cannot be returned from functions because the caller
doesn't have access to their type".

I posted about this back in 2011:

http://www.digitalmars.com/d/archives/digitalmars/D/Has_the_ban_on_returning_function_nested_structs_been_lifted_132233.html

It might have been a relic from earlier TDPL writing when this feature
didn't exist. :)


More information about the Digitalmars-d mailing list