[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Immutable Ruby

Trans

8/29/2008 4:59:00 AM



On Aug 28, 10:07=A0pm, John Carter <john.car...@tait.co.nz> wrote:

> To find out what it would be like replace every
> =A0 =A0Blah.new(arg1,arg2...)
> =A0 =A0 with
> =A0 =A0Blah.new(arg1,arg2...).freeze

Almost. From my understanding Immutable objects can have internal
changing state as long as it is never exposed to the outside world.
For instance, memoize is a good example.

Am I right about that?

T.