Message: Re: 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

More Re: Add discussion of use of new and delete in G4? 

Forum: Documentation and Examples
Re: None Add discussion of use of new and delete in G4? (Ben Morgan)
Date: 23 Nov, 2007
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Ben,

> 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.

you are certainly right. The information could be certainly grouped in one place and
provided particularly in the basic-concepts section of the documentation. Thanks for the
suggestion.
For what concerns the geometry this information anyhow already exists, see end of the
first paragraph of chapter 4.1.4:
http://cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch04.html#sect.Geom.PhysVol
Similarly when talking about regions, assemblies, etc...

Cheers, Gabriele

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

 Add Message Add Message
to: "Re: 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 ]