September 26, 2022 - tip of the week to bypass IFTI

Posted 2022-09-26

First issue with wontfix bug report and tip of the week about bypassing IFTI

Core D Development Statistics

In the community

Community announcements

See more at the announce forum.

Tip of the Week

A user on the discord chat asked if there was a way to force explicit type argument, bypassing IFTI. The user Mayonix had a solution:

template foobar(T) {
    T realFoobar(T t) {
        return t;
    alias foobar = realFoobar;

void main()
    foobar(3); // Error: It isn't smart enough to see through the alias
    foobar!int(3); // Works fine!