I have some algorithmic code that uses the same dereferencing symbol quite often, like

.X

It's used in ranges, in predicates, in strings, etc and other things but is used a lot. The object it acts on has several fields and I would like to use them.

is there a way to use a abstract this easily?

alias C = X;

.C

then this is just .X

alias C = Y;

.Y

etc...

this obviously does not work though.



I do not want to use mixins nor have to write a lot of code to get something so simple.



Reply via email to