Re: std.utf.decode @nogc please

2014-10-05 Thread via Digitalmars-d
On Saturday, 4 October 2014 at 22:02:14 UTC, Andrei Alexandrescu wrote: On 10/4/14, 4:24 AM, Marc Schütz schue...@gmx.net wrote: On Friday, 3 October 2014 at 19:51:40 UTC, Andrei Alexandrescu wrote: On 10/3/14, 11:35 AM, Dmitry Olshansky wrote: 01-Oct-2014 14:10, Robert burner Schadek пишет:

Re: std.utf.decode @nogc please

2014-10-05 Thread Andrei Alexandrescu via Digitalmars-d
On 10/5/14, 1:58 AM, Marc Schütz schue...@gmx.net wrote: There was indeed agreement on reference counting (although someone suggested disallowing cycles or removing chaining altogether). But what I meant is that there was no agreement on a specific solution, and several ones were proposed, from

Re: std.utf.decode @nogc please

2014-10-04 Thread via Digitalmars-d
On Friday, 3 October 2014 at 19:51:40 UTC, Andrei Alexandrescu wrote: On 10/3/14, 11:35 AM, Dmitry Olshansky wrote: 01-Oct-2014 14:10, Robert burner Schadek пишет: lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc.

Re: std.utf.decode @nogc please

2014-10-04 Thread Andrei Alexandrescu via Digitalmars-d
On 10/4/14, 4:24 AM, Marc Schütz schue...@gmx.net wrote: On Friday, 3 October 2014 at 19:51:40 UTC, Andrei Alexandrescu wrote: On 10/3/14, 11:35 AM, Dmitry Olshansky wrote: 01-Oct-2014 14:10, Robert burner Schadek пишет: lately when working on std.string I run into problems making stuff nogc

Re: std.utf.decode @nogc please

2014-10-03 Thread Dmitry Olshansky via Digitalmars-d
01-Oct-2014 14:10, Robert burner Schadek пишет: lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc. https://issues.dlang.org/show_bug.cgi?id=13458 Trivial to do. But before that somebody got to make one of: a) A policy on reuse of

Re: std.utf.decode @nogc please

2014-10-03 Thread Andrei Alexandrescu via Digitalmars-d
On 10/3/14, 11:35 AM, Dmitry Olshansky wrote: 01-Oct-2014 14:10, Robert burner Schadek пишет: lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc. https://issues.dlang.org/show_bug.cgi?id=13458 Trivial to do. But before that somebody got to

Re: std.utf.decode @nogc please

2014-10-03 Thread Dmitry Olshansky via Digitalmars-d
03-Oct-2014 23:51, Andrei Alexandrescu пишет: On 10/3/14, 11:35 AM, Dmitry Olshansky wrote: 01-Oct-2014 14:10, Robert burner Schadek пишет: lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc. https://issues.dlang.org/show_bug.cgi?id=13458

std.utf.decode @nogc please

2014-10-01 Thread Robert burner Schadek via Digitalmars-d
lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc. https://issues.dlang.org/show_bug.cgi?id=13458 Also I would like a version of decode that takes the string not as ref. Something like: bool decode2(S,C)(S str, out C ret, out size_t

Re: std.utf.decode @nogc please

2014-10-01 Thread Walter Bright via Digitalmars-d
On 10/1/2014 3:10 AM, Robert burner Schadek wrote: Ideas, Suggestions ... ? any takers? You can use .byDchar instead, which is nothrow @nogc.

Re: std.utf.decode @nogc please

2014-10-01 Thread Robert burner Schadek via Digitalmars-d
On Wednesday, 1 October 2014 at 10:51:25 UTC, Walter Bright wrote: On 10/1/2014 3:10 AM, Robert burner Schadek wrote: Ideas, Suggestions ... ? any takers? You can use .byDchar instead, which is nothrow @nogc. thanks, I will try that.

Re: std.utf.decode @nogc please

2014-10-01 Thread monarch_dodra via Digitalmars-d
On Wednesday, 1 October 2014 at 10:51:25 UTC, Walter Bright wrote: On 10/1/2014 3:10 AM, Robert burner Schadek wrote: Ideas, Suggestions ... ? any takers? You can use .byDchar instead, which is nothrow @nogc. Being forced out of using exception just to be able to have the magic @nogc tag

Re: std.utf.decode @nogc please

2014-10-01 Thread monarch_dodra via Digitalmars-d
On Wednesday, 1 October 2014 at 10:10:51 UTC, Robert burner Schadek wrote: lately when working on std.string I run into problems making stuff nogc as std.utf.decode is not nogc. https://issues.dlang.org/show_bug.cgi?id=13458 Also I would like a version of decode that takes the string not as