Joseph Rushton Wakeling:
I've habitually used 'format' to prepare assert messages with
variable content, which has a similar problem -- IIRC it
conflicts with nothrow and I guess it too would conflict with
@nogc.
A solution is to add to Phobos a way to format to an output
range, where the range you use a stack-allocated array of chars
large enough to contain your formatted message. So on the whole
it can be @nogc.
Bye,
bearophile
- Re: @nogc Joseph Rushton Wakeling via Digitalmars-d
- Re: @nogc bearophile via Digitalmars-d
-