[SAGA-RG] Cloning and object ids

Andre Merzky andre at merzky.net
Thu Oct 16 12:04:58 CDT 2008


Quoting [Malcolm Illingworth] (Oct 16 2008):
> 
> Hi,
> 
> A quick question about cloning and deep copy.
> 
> If I clone an object, is the saga object identifier supposed to get set to
> the value from the original object, or get a new value assigned?

Hi Malcolm,

the object id is supposed to help to keep track of object
instances on application level, e.g. to implement an object
registry or such.  Thus, clone should create an object with
a _new_ (i.e. different) object id.

This should be clarified in the spec, thanks for asking! :-)

Cheers, Andre.


> Thanks,
> Malcolm.
>     
> 
> 
> ---------------------------------------------------- |epcc| -
> 
> Malcolm Illingworth
> EPCC, University of Edinburgh
> James Clerk Maxwell Building
> Mayfield Road                   E-mail: malcolm at epcc.ed.ac.uk
> Edinburgh EH9 3JZ               Phone:  + 44 (0) 131 651 3388
> United Kingdom                  Fax:    + 44 (0) 131 650 6555
> 
> ------------------------------------------------------------- 
-- 
Nothing is ever easy.


More information about the saga-rg mailing list