Subj : Re: works only outside class [OT] To : borland.public.cpp.borlandcpp From : "Goran Bervar" Date : Fri Jan 09 2004 09:47 am "Thomas Maeder [TeamB]" wrote in message news:m2y8t21g04.fsf@madbox2.local... > > term_t ref = PL_new_term_ref(); > > This initializes ref with the return value of PL_new_term_ref(). In principle, > the term_t copy constructor is used for this, but it could also be be > optimized away. I wonder why you say "optimized" away . I recently needed to size-down my DOS appliciation with BCB 5 and I was __really__ surprised when I discovered that using defaullt ctor,operator= pair generates smaller machine code than using (default) copy ctor. goran .