assert(false) and GC
Ali Çehreli
acehreli at yahoo.com
Fri Jul 9 23:34:25 UTC 2021
On 7/9/21 4:12 PM, russhy wrote:
>> One way of forcing compile-time evaluation in D is to define an enum
>> (which means "manifest constant" in that use).
That's all I meant. It was a general comment.
> this is very bad, assert are good because they are one liner, making it
> 2 line to avoid GC is just poor design, compiler should be smarter
There must be a misunderstanding. The one-liner does not allocate either
(or @nogc is broken).
Ali
More information about the Digitalmars-d-learn
mailing list