Hi Chris --
I was doing a rollup of work for the past few weeks and realized that we
never reported back (to the forum at least) that this bug has been
resolved as of r22237 (10/31/2013) on trunk. Thanks again for reporting
it -- I'm still amazed it this regression got by us. I believe this
closes out both bugs that you sent us that week.
-Brad
On Mon, 21 Oct 2013, Brad Chamberlain wrote:
>
> Hi Chris --
>
> Thanks for reporting this bug. From what I'm seeing, if you throw the
> --no-copy-propagation flag, you'll get the expected behavior, so I would
> suggest using this workaround until we're able to provide a patch to address
> the issue.
>
> Would it be OK if I add your code to our repository in the test/ hierarchy
> under test/users/christopher.doris/intersperse.chpl, or would you rather (a)
> not have your name captured in this way and/or (b) not to have your code
> captured in this way?
>
> Thanks,
> -Brad
>
>
> On Mon, 21 Oct 2013, Chris Doris wrote:
>
>> The program
>>
>> /* yields elements from B with a between each element */
>> iter intersperse(a, B) {
>> var first = true;
>> for b in B {
>> if ! first then yield a;
>> yield b;
>> first = false;
>> }
>> }
>> writeln(intersperse(0, 1..3))
>>
>> produces the output
>>
>> 1 2 2 3 3
>>
>> when I was expecting
>>
>> 1 0 2 0 3
>> .
>>
>>
>> Chris
>>
>
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs