Andrei Alexandrescu wrote:
Yigal Chripun wrote:
that's a good point but I don't like string mixin to be used for that.
Actually, string mixins should be deprecated in favor of better tools.
IIRC, ada has expression generics, which in D would be like:
sort!(a.name < b.name)(vec) // instead of the above
the difference is that it's not a string but an expression in the
language itself.

Where would tbe names a and b be looked at?

Andrei

inside the macro scope.

Reply via email to