[fpc-pascal] with no if assigned() there are bugs
Tomas Hajny
XHajT03 at hajny.biz
Wed Sep 21 08:24:22 CEST 2016
On Wed, September 21, 2016 07:29, Lars wrote:
Hi,
> Hi all, I am wondering what your thoughts are on this
> idea: add the ability to do if assigned() on all
> objects to prevent bugs, maybe as a compiler feature.
.
.
What would be the supposed "else" clause of your "if" statement? I assume
that the original action with the given object should not be ignored
silently, because that would lead to even more difficult debugging of such
bugs. Run-time error? But that is already happening with access violation
too. Or...?
Tomas
More information about the fpc-pascal
mailing list