Damir Buskulic writes: > > > Is this correct or am I missing something very obvious ? > > root [15] int b > root [16] b=3 > (int)3 > root [17] delete b > Error: b cannot delete FILE:/var/tmp/saaa24464 LINE:1 Damir, you can not do it in plain C++ too. "b" is stack variable. You can delete only objects created by new. Victor -- ------------------------------------------------------------------------- Victor M. Perevoztchikov perev@mail.phy.ornl.gov [ US perev@bnl.gov [ US perev@vxcern.cern.ch [ CH perev@mx.ihep.su [ RUS Brookhaven National Laboratory MS 510C PO Box 5000 Upton NY 11973-5000 Phone: 516-344-7107 FAX: 516-344-3253 Oak Ridge National Laboratory, MS 6374, Oak Ridge, TN 37831 (423-574 5928) Fax (423-576 5780) University of Tennessee, Knoxville, TN 37996-1200 (secre-at 423-974 3342)
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:29 MET