This needs to be fixed
Walter Bright
newshound2 at digitalmars.com
Mon Aug 26 05:20:17 UTC 2024
On 8/24/2024 11:59 PM, Manu wrote:
> Here's another one just now:
>
> return __traits(getMember, instance, funName)(args); // this works as it should
>
>
> alias fun = __traits(getMember, instance, funName);
> return fun(args); // error : calling non-static function `myFun` requires an
> instance of type `T`
>
>
> Again... this isn't acceptable in 2024. No 'explanation' should be acceptable to
> any sound mind. It's a critical bug, and it should have been fixed 15-20 years ago.
Thank you for posting this, but it is an incomplete example. Please don't make
me guess what is missing - it's a big time saver if you provide it.
More information about the Digitalmars-d
mailing list