[fpc-devel] [patch] removing compiler warning from aasmtia.pas unit
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Oct 25 20:28:09 CEST 2010
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
More information about the fpc-devel
mailing list