On Tuesday, 13 September 2022 at 03:00:17 UTC, Kyle Ingraham wrote:
Any suggestions for being able to call one function for any instance given but maintain flexible return types?

Not sure if it helps, but you can define final methods in an interface, which can call virtual interface methods:
interface PathConverter
    string getValue();

    final T toD(T)()
        import std.conv : to;

        return to!T(getValue());
Not tested as AFK.

Reply via email to