4 ms·
The GC is very nice for evaluating functions at compile time. It has zero runtime cost.
by WalterBright 4y ago
The GC is very nice for evaluating functions at compile time. It has zero runtime cost.
- tristanbvk 4y agoHow would one go about instantiating an object in D without GC if the new keyword relies on it. Accounting for memory allocation and object initialization (construction etc)? Legit question coming from a D enjoyer
- WalterBright 4y agoThe compile time function execution enables allocation with `new` and it handles initialization, etc.
- tristanbvk 4y agoThanks Walter!