Type safety
Type safety
- With “ParticleList DzeroList;” the objects in the list are of type “Particle,” not “Dzero”
- This means that the user may write :
- ParticleList DzeroList (KminsList, piplusList, sel_Dzero); ParticleList BminusList (KminusList, piminusList, sel_B);
- and the compiler cannot catch his/her mistake