[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2013-02-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||edmcc...@verizon.net


--- Comment #9 from Don clugd...@yahoo.com.au 2013-02-01 00:51:02 PST ---
*** Issue 7801 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2013-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841



--- Comment #8 from github-bugzi...@puremagic.com 2013-01-27 11:34:12 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e5de59d30026fa5267541a928d67af1e8c06f922
Fix issue 1841 Closure detection fails in nested functions

If an escaping function doesn't use any closure variables, but
calls another nested function which does, it must be marked as
needing a closure. This 'calling a sibling' case was missing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2013-01-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2013-01-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||bdom.pub+deeb...@gmail.com


--- Comment #7 from Don clugd...@yahoo.com.au 2013-01-26 02:22:04 PST ---
*** Issue 2148 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2013-01-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841



--- Comment #6 from Don clugd...@yahoo.com.au 2013-01-24 01:23:08 PST ---
The basic problem is that the existing closure detection only checks parents of
nested functions. It should also check sibling nested functions.
Ie, if one nested function f calls another nested function g, then if g needs a
closure, then so does f.
More complex cases are possible, such as where f calls g which calls h, f
escapes, h uses closure variables but f and g don't.

I have a fix for the original test case, still working on the more complex
cases.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2012-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Denis Shelomovskij verylonglogin@gmail.com changed:

   What|Removed |Added

 CC||dpx.infin...@gmail.com


--- Comment #5 from Denis Shelomovskij verylonglogin@gmail.com 2012-11-12 
13:42:26 MSK ---
*** Issue 7303 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2012-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Denis Shelomovskij verylonglogin@gmail.com changed:

   What|Removed |Added

 CC||verylonglogin@gmail.com
   Platform|x86 |All
Version|2.010   |D2
 OS/Version|Linux   |All
   Severity|normal  |major


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2012-03-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||xi...@live.com


--- Comment #4 from Don clugd...@yahoo.com.au 2012-03-27 23:23:03 PDT ---
*** Issue 7766 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1841] Closure detection doesn't work when variable is used in a nested function

2010-10-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1841



--- Comment #3 from Don clugd...@yahoo.com.au 2010-10-19 23:56:53 PDT ---
See also bug 1908, test case 5w, for another example.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---