Returning a struct by reference

Daniel Keep daniel.keep.lists at gmail.com
Sat Mar 21 06:44:14 PDT 2009



Simon TRENY wrote:
> Ok, but then, what if I'd like to make the variable "read-only"? i.e. preventing the user from writing things like this:
> myObject.position = pos2;
> 

So... you're rejecting a solution on the basis that it prevents you from
doing the exact opposite of what you want to do?

*boggle*

  -- Daniel



More information about the Digitalmars-d mailing list