selective commit

Milan Mimica milan.mimica at gmail.com
Tue Jun 12 15:50:03 UTC 2012


On 12 June 2012 17:20, Chris Muller <ma.chris.m at gmail.com> wrote:

> Ah ok.  Yes, there are actually two ways to do it.
>
> 1) you can implement #maTransientVariables on any class to declare its
> named inst-vars which should be ignored by Magma.  Just answer an
> Array of the inst-var names (it can be calculated dynamically).  This
> is the easiest solution to cause Magma to ignore particular object
> links.
>
> 2) Your example was with Array though, which doesn't have named
> inst-vars.  For that you would have to use a MaImmutabilityStrategy
> which lets you specify objects to be immutable by a condition block.
> It can even ignore a reference based on conditions of the *Referencer*
> (e.g.,  the referencing object) instead of only the referenced object.
>  See MagmaTestCase>>#commitWithImmutabilityStrategy for usage details.
>

OK, thanks. I knew about  #maTransientVariables but haven't thought of
using it this way.


-- 
Milan Mimica
http://sparklet.sf.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/magma/attachments/20120612/964183bd/attachment.htm


More information about the Magma mailing list