On 25 Oct 2010, at 17:16, Graeme Geldenhuys wrote:

> So yes, tai_section might have that "one" constructor as private, but in no
> way does it stop anybody from creating an instance of that class with all
> the inherited constructors (all being public).

That's correct.

> And in doing so, it will
> put that tai_section instance in an "undefined" state, because it doesn't
> execute the code implemented in that private constructor.

In that case, you'll either get internalerrors soon afterwards or code that 
won't assemble. That is much preferable to having a tai_section that assembles 
fine but which behaves wrongly (which is what you can easily get if you don't 
use the new_section() function to create a new section).


Jonas_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to