Basic questions about D lang?

crimaniak crimaniak at gmail.com
Wed Nov 29 11:53:02 UTC 2017


On Wednesday, 29 November 2017 at 11:32:51 UTC, Jayam wrote:
> In D lang,
> 1. Is there any feature async/ await like "c#" ? I can't find 
> feature like async.
As for me, async/await feature is a half-baked solution. With 
vibe-d you can write asynchronous code without thinking about it 
at all. Details: http://vibed.org/features

> 2. Is Garbage Collector work default without any code to force 
> like in c# or do we need to manually trigger it ?
It starts automatically when you try to allocate memory and there 
is no space in heap. In fact, it leads to architecture 
restriction: destructors must be @nogc. Also, you can run it with 
GC.collect()
> 3. Can we make library file and use that in any project like 
> 'Util class' ?
Yes.




More information about the Digitalmars-d-learn mailing list