On Thu, 30 Dec 2010 08:15:51 -0500
Yes, thank you for this hint. A kind of proxy struct? It can indeed be used everywhere performance is not critical. But a side issue is that it requires the 'alias this' hack, I guess, or forwarding every operation to the actual, but wrapped, element. What do you think> > But some language types (or machine types) can have very diverse _human_ semantics, and thus be used for various purposes which should, but cannot, be considered different:
>
> You may wrap your data in a struct.
func2(Position(1)); // implicit conversion to int with alias this
int a = pos; // implicit conversion from Position to int instead ofint b = pos.base;