Truly @nogc Exceptions?
Steven Schveighoffer
schveiguy at gmail.com
Wed Sep 19 21:28:56 UTC 2018
On 9/19/18 5:16 PM, Steven Schveighoffer wrote:
> One further thing: I didn't make the sink version of message @nogc, but
> in actuality, it could be. Notice how it allocates using the stack. Even
> if we needed some indeterminate amount of memory, it would be simple to
> use C malloc/free, or alloca. But traditionally, we don't put any
> attributes on these base functions. Would it make sense in this case?
Aand, no we can't. Because the sink could actually allocate.
-Steve
More information about the Digitalmars-d
mailing list