[Issue 10741] A delegate in a variable initializer cannot see the variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 1 12:19:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10741
Maxim Fomin <maxim at maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim at maxim-fomin.ru
--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-08-01 12:19:09 PDT ---
Yes, because a declaration with initializer is not finished in the point of
initializer. This is a basic feature in D.
void main()
{
@((int i)=>a) int a; //error
auto b = { return b; } ; //error
}
However nothing is wrong with making this limitation gone.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list