Questions on the new __traits(parameters)
Steven Schveighoffer
schveiguy at gmail.com
Thu Mar 10 22:37:03 UTC 2022
On 3/10/22 5:21 PM, Timon Gehr wrote:
> I guess __traits(parent, {}) and similar are also affected.
Yep. Which is too bad.
I tried some other things out. `__FUNCTION__` prints the delegate name,
shadowing variable names is allowed but deprecated.
It would be nice if we could eliminate any real indications that this is
a lambda (which really is an implementation detail).
On the other hand, opApply is pretty out of favor now, so maybe it's not
going to be as bad of an effect. This really is one of those difficult
to explain pieces to new users, and really difficult to get correct
within generic code.
-Steve
More information about the Digitalmars-d
mailing list