Nested function bug?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Mar 30 13:51:20 PDT 2012


On 3/30/12, Ed McCardell <edmccard at hotmail.com> wrote:
> The code below demonstrates this (using DMD 2.058, no optimizations). Is
> this a bug?

You mean the result is 55 when you uncomment "return &nested;"? All
asserts pass for me when I use that return. Otherwise when using
"return &escaping;" I get:

1244764
1244764
4202631

2.058 win32.


More information about the Digitalmars-d mailing list