Tried C++ to D. Wrong result.

Temtaime temtaime at gmail.com
Tue Nov 28 09:01:47 UTC 2017


On Tuesday, 28 November 2017 at 06:46:18 UTC, Dmitry wrote:
> On Monday, 27 November 2017 at 19:01:28 UTC, Ali Çehreli wrote:
>> P.S. I think you have an unnecessary 'ref' on the D version 
>> because a slice is already a reference to elements:
> Fixed, thank you.

https://pastebin.com/xJXPBh0n
Converted it and it works as expected.


More information about the Digitalmars-d-learn mailing list