On Friday, 9 July 2021 at 23:34:25 UTC, Ali Çehreli wrote:
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

https://run.dlang.io/is/HJVSo0

it allocates

Reply via email to