EDMA: Entorno de Desarrollo Modular y Abierto
Object Oriented and Componentware Framework

Copyright (C) 1998, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2013
           by David Martínez Oliveira

See the end of the file for license conditions.
==========================================================================

Object Clonning Examples
------------------------
These examples demonstrate the object cloning primitives provided by GNU/EDMA. 

To run these examples

1. Classes AP_TEST, GAP, HELLO_WORLD, ID should be installed
     See "anchor_points" and "inheritance" to install AP_TEST and GAP
     Make sure that classes HELLO_WORLD and ID distributed with the system are available.

2. Compile the example programs
      make -f clonning.mk
      make -f shallow_clonning.mk

3. Run examples. Check source code to follow execution traces

* Briefing
--------------------------
GNU/EDMA supports object deep and shallow cloning to provide basic prototype-based programming functionalities. The examples in this directory shows how to clone objects and the differences between deep and shallow cloning.

Basically a deep cloning is an exact copy of an object which replicates every component in it (subobjects and dynamic properties). A shallow clone of an object only replicates the provided subobject, linking subobjects and dynamic properties to the existing ones (pointer update but not malloc)

.

EDMA is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

EDMA is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with EDMA.  If not, see <http://www.gnu.org/licenses/>.
