[SAoC] 'DPP with Linux kernel headers' Project Thread

Cristian Becerescu cristian.becerescu at yahoo.com
Mon Oct 28 17:47:41 UTC 2019


On Monday, 28 October 2019 at 12:14:50 UTC, Newbie2019 wrote:
> On Monday, 28 October 2019 at 11:14:24 UTC, Cristian Becerescu 
> wrote:
>> Update for week 2 of Milestone 2
>>
>> - PRs from the previous week were successfully merged
>>
>> [...]
>
> Maybe you can try:
>
> u32 i=0;
> typeof(u32.init) f1(); // err
> typeof(int.init) f2(); // err
> typeof(i.init) f2(); // err

Initially I thought about checking if the argument to typeof() is 
a type or an alias to a type (and just use the argument as is in 
those scenarios).

But your suggestion is more generic, and it works on all those 
cases. Thank you! I will try it out.


More information about the Digitalmars-d mailing list