Back Help
Allocation expressions are used to allocation and deallocate objects.
Facts about allocation expressions are as follows:
Several examples are provided below.
// Allocate a node and add it to the model: Camera camera = new Camera; camera.Name = "Camera"; Model.AddNode( camera, Model, -1 );
// Allocate two Vec objects, perform some processing on them, then delete them: Vec min = new Vec; Vec max = new Vec; min.X = 10; max.X = 30; // Do something useful with the Vec objects... // Delete the objects when finished. delete min; delete max;