[saga-rg] deep copy / shallow copy

Thilo Kielmann kielmann at cs.vu.nl
Sun Sep 11 07:15:19 CDT 2005


On Sun, Sep 11, 2005 at 02:10:28PM +0200, Andre Merzky wrote:

> The code snippet above is not badly written, but does depend
> on the semantics of the copy operator.  Any assignement
> operation (so any '=' with SAGA objects involved) will
> expose the problem.  But you cannot argue that a programmer
> using '=' is writing bad code ;-)

Using '=' isn't bad. But creating an alias is 
(which, in fact, you do here ;-)


Thilo
-- 
Thilo Kielmann                                 http://www.cs.vu.nl/~kielmann/





More information about the saga-rg mailing list