auto, var, raii,scope, banana

Chris Miller chris at dprogramming.com
Tue Jul 25 21:23:41 PDT 2006


On Wed, 26 Jul 2006 00:13:53 -0400, Regan Heath <regan at netwin.co.nz> wrote:
> 1. 'new' implies heap allocation

Except when it doesn't.  I'm talking about overloaded 'new'

If Object`s were given 2 default new() implmentations, one that does the  
current allocation, and another that allows you to specify a buffer (also  
so that every Joe who wants this doesn't have to derive from the class to  
provide it). When RAII is involved, it can choose which version of new()  
to use (implementaion defined), using stack or not.



More information about the Digitalmars-d mailing list