What are (were) the most difficult parts of D?
Ali Çehreli
acehreli at yahoo.com
Thu May 12 16:24:26 UTC 2022
On 5/12/22 07:28, Guillaume Piolat wrote:
> On Thursday, 12 May 2022 at 11:05:08 UTC, Basile B. wrote:
>> - Certain variant forms of the `is` Expression are not obvious (not
>> intuitive), I'm pretty sure I still cant use them without a quick look
>> to the specs.
>
> That one was a trouble to hear about =>
>
http://p0nce.github.io/d-idioms/#Get-parent-class-of-a-class-at-compile-time
Cool trick but "parent" confused me there. I think you mean "base". :)
It looks like there is an alternative now:
https://dlang.org/phobos/std_traits.html#BaseTypeTuple
Ali
More information about the Digitalmars-d-learn
mailing list