8 ms·
Wow that looks really good. Can you use any String after the dot? P.S. I don't use D
by btzll 11y ago
Wow that looks really good. Can you use any String after the dot?
P.S. I don't use D
- barrkel 11y agoYou could look at the linked documentation. I think it makes it clear. PS: I don't use D.
- barrkel 11y agoI see the lazy people are out in force :)
- lultimouomo 11y agoYes, you declare the parameter as Flag!"async" And then the possible values are Yes.async and No.async This exploits D dispatch operator: http://dlang.org/operatoroverloading.html#dispatch http://dlang.org/operatoroverloading.html#dispatch which in general is great for implementing this sort of dynamic feature in a strongly statically typed language as D - everything is checked as compile time!