From: Simon Vandemoortele Date: 2003-10-15T12:25:46+09:00 Subject: Re: [OO interface design] Pass-by reference VS encapsulation ? On Thu, 01 May 2003 at 12:20 GMT, Dave Thomas wrote: > However, that's not the way I'd go. Instead I'd make the objects all > mutable, and have a 'save' method that stored them away on a change. Something like this ? #+v c = myAddressbook.getContact('Simon Vandemoortele') c.age = 25 | Inconsistent c.name = "delirious" | phase begin c.save // Make data consistent again rescue DuplicateEntryError puts "There's already an entry by that name in the addressbook." end #-v Simon -- There are 10 types of people in the world... those who understand binary and those who don't.