Rob;<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">But that misses the point: it is NOT reasonable behavior for a null return value for a pre-constructor to cause the constructor itself to return null (unless that&#39;s documented behavior?!?).  Consider this:<br>
</blockquote><div><br>I completely agree. I don&#39;t think anybody would argue the current behaviour is right; it&#39;s quite wrong and as you demonstrated it can have follow up effects that lead to hard to trace issues. <br>
<br>the question I was attempting to address is &quot;what should happen instead?&quot;. In the past some people have suggested that this situation (non-returning functions) should be made impossible (at the parser stage) and I don&#39;t think we can do that without demanding a very strict style of programmers.<br>
<br>I admit it was unclear that I was partially addressing that suggestion instead of the bug you reported and that this was unclear. As far as I can see there is nothing here on which we disagree.<br><br>I would, BTW, like to suggest that &quot;fans of kassen&quot; should have plenty of member functions that return stuff, cups of coffee and dark beers would be especially good :¬).<br>
<br>Cheers,<br>Kas.<br></div></div><br>