[Issue 1084] lazy variadic parameters break in strange way

2019-03-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1084

FeepingCreature  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from FeepingCreature  ---
This code started working at 2.067.1. It seems to be creating the array lazily
when the foreach references the parameter, which is a sane way to go. In any
case, fixed.

--


[Issue 1084] lazy variadic parameters break in strange way

2009-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1084


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

   What|Removed |Added

   Keywords|wrong-code  |accepts-invalid
 CC||clugd...@yahoo.com.au




--- Comment #3 from Don clugd...@yahoo.com.au  2009-08-04 07:31:14 PDT ---
This isn't wrong-code, the bug is in the user's code. Changing to
accepts-invalid.
(Perhaps lazy []... should be illegal?)

On DMD2, it displays:
bug(12): Error: escaping reference to local __arrayArg502
So it's a D1-only issue.

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