Ref and class function calls?

Tofu Ninja emmons0 at purdue.edu
Tue Apr 16 21:06:02 PDT 2013


On Tuesday, 16 April 2013 at 21:14:16 UTC, Ali Çehreli wrote:
> On 04/16/2013 08:44 AM, Tofu Ninja wrote:
> When that happens, would you expect a and b also become handles 
> to the new object? It could I guess, but it sounds impractical 
> in a system language. The runtime does not maintain a record of 
> what handles share the same object.


No, I wouldn't expect a to change. If I did b.replace() I would 
only expect b to be changed, a would still be pointing back at 
the original object.


More information about the Digitalmars-d-learn mailing list