In article[...]
<c35e0ed1-b249-45f8-899e-912aeaa0f...@r36g2000prf.googlegroups.com>,
<mail....@gmail.comwrote:
3- If there's an exception thrown by getT in:
Type t;
getT(t);
You end up with a default initialised Type object that has noJust a nit, but that's only true if you open a try block which
reason to be.
catches the exception between the definition and the function
call. Hvaing to declare the variable separately is awkward; it
can be very awkward in more complicated expressions, but it's
not quite as dangerous as you suggest.
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34