Using_string_mixins_for_logging error

Vitalii yvitaliy1980 at
Wed Jul 15 07:07:55 UTC 2020

Hello everyone!

I try to compile this recipe with dmd (2.089.0), ldc2 (1.18.0):
but get the same error:

mixin_log.d(64): Error: basic type expected, not __FUNCTION__
mixin_log.d(64): Error: declaration expected, not __FUNCTION__

in that part of code:

mixin template set_func_name(string fn)
     enum __FUNCTION__ = fn;

There is no doubt that this recipe once worked. How to fix it now?

More information about the Digitalmars-d-learn mailing list