Message: Add discussion of use of new and delete in G4? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Add discussion of use of new and delete in G4? 

Forum: Documentation and Examples
Date: 23 Nov, 2007
From: Ben Morgan <Ben Morgan>

Hi,

Following a post on the Installation and Configuration forum regarding the use of new and delete in Geant4

http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/installconfig/1017.html

I wonder if it might be useful to add some brief discussion about the ownership of new'd instances in Geant4 (particularly in the geometry section). Given that most people have "always delete things you've new'd" pretty hardwired, some comments in the documentation about the automatic registration of instances with the 'store' objects would be helpful I think.

Cheers,

Ben Morgan.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: Add discussion of use of new and delete in G4?   (Gabriele Cosmo - 23 Nov, 2007)
 Add Message Add Message
to: "Add discussion of use of new and delete in G4?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]