[Issue 907] pointers in static constructors are wack
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 30 09:15:34 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=907
shro8822 at uidaho.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from shro8822 at uidaho.edu 2007-01-30 11:15 -------
This is invalid. all of the delegate inside of the "static this" use stack
variables, once the "static this" returns, the stack variables are unusable
(but the delegate doesn't known this).
Anon delegates should NEVER be allowed to escape the function in which they are
defined.
The bug here is that the docs don't have this in big red font.
--
More information about the Digitalmars-d-bugs
mailing list