[Issue 13348] std.uni.Grapheme is impure due to using C malloc and friends

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 6 11:47:35 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=13348

--- Comment #12 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Dmitry Olshansky from comment #11)
> > At this point, if we were to fix purity, I think this is the way to go. From your comments in the code, you said that most of the time allocations will not happen. I'm sure this varies with the language being processed, but it's probably mostly true.
> 
> Problem is there is @nogc crowd and then there is pure @safe crowd. I can't
> satisfy both.

Haha! good point. Until we have allocator being configurable, we can't solve
both.

I say leave it the way it is until we have that. @nogc is currently way more
important than purity I think, and breaking existing @nogc code by making the
default all of a sudden use gc, would be disruptive.

--


More information about the Digitalmars-d-bugs mailing list