Garbage Collection and gamedev - tl;dr Yes we want it, so let's solve it

RazvanN razvan.nitu1305 at
Mon Nov 23 05:38:36 UTC 2020

On Monday, 23 November 2020 at 04:04:44 UTC, Adam D. Ruppe wrote:
> On Monday, 23 November 2020 at 03:53:04 UTC, RazvanN wrote:
>> And then there are many functions like this in druntime:
> Do you have a specific example in there now? Your little given 
> example uses assert and would thus be compiled out anyway of 
> the normal druntime build.

Hmmm, I struggled with this in .
I did not know that asserts are ignored in normal builds. So 
typically you
would need to manually throw an Error in cases like checking 
array bounds.

>> Also if you want to format the message of the assert, normally 
>> you would use `~` however, you want your function to be @nogc
> With the `debug` keyword you can do stuff like this. Of course 
> only sometimes compiled in so not necessarily helpful to 
> druntime but maybe.

More information about the Digitalmars-d mailing list