"Arnd Hanses" <[EMAIL PROTECTED]> writes: | { | [VIP] | FOO foo; | FOO * p = foo; | VIPfunc(p) | [VIP] | } We should never to a thing like that. What we could/should do is: VIPFunc(FOO & r) { // use r } { [VIP] FOO foo; VIPFunc(foo); [VIP] } Making a pointer out of local variables or references are error prone. Lgb
- Re: 'new'/'delete' and malloc()/free() -... Juergen Vigna
- Re: 'new'/'delete' and malloc()/free() -... Amir Karger
- Re: 'new'/'delete' and malloc()/free... Lars Gullik Bjønnes
- Re: 'new'/'delete' and malloc()/free() - lclint f... Arnd Hanses
- Re: 'new'/'delete' and malloc()/free() - lclint f... Lars Gullik Bjønnes
- Re: 'new'/'delete' and malloc()/free() - lclint f... Arnd Hanses
- Re: 'new'/'delete' and malloc()/free() - lclint f... Lars Gullik Bjønnes
- Re: 'new'/'delete' and malloc()/free() - lclint f... Arnd Hanses
- Re: 'new'/'delete' and malloc()/free() - lclint f... Lars Gullik Bjønnes
- Re: 'new'/'delete' and malloc()/free() - lclint f... Arnd Hanses
- Re: 'new'/'delete' and malloc()/free() - lclint f... Lars Gullik Bjønnes
- Re: 'new'/'delete' and malloc()/free() - lclint f... Arnd Hanses
- Re: 'new'/'delete' and malloc()/free() - lclint f... Asger K. Alstrup Nielsen