Is this nogc? dmd and gdc disagree
tsbockman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 12 16:41:35 PST 2016
On Friday, 12 February 2016 at 23:46:09 UTC, Kapps wrote:
> You'll encounter this pretty often in Phobos I think. I really
> don't think @nogc is ready, and tend to avoid it in my code.
> Exceptions are a big reason for it, and lots of functions in
> Phobos throw exceptions which prevents them from being used in
> @nogc (barring ugly hacks). I don't want to discourage you
> before you try it, but I feel like @nogc is not yet worth using
> until something is done about issues such as exceptions,
> allowing Phobos to properly be able to handle @nogc.
On the other hand... Realistically, the only way that Phobos will
reach usability with @nogc, is if people keep trying and
complaining when something doesn't work that should.
I guess the problem is that a lot of this stuff requires RC
exceptions to be realistically fixable. (Not this case though.)
More information about the Digitalmars-d-learn
mailing list