Re (2): [Oberon] n-o trap analysis confuses me

edgar at edgarschwarz.de edgar at edgarschwarz.de
Sat Mar 27 11:05:01 CET 2004


Hi Chris,

I called http://pathology with NO on 486 without problems.
Now some comments to your trap in ImgIcon:
> My reasoning is that:
> 1. C must be initialised before:
Nope. C is on the stack not on the heap => No initialisation before use.

That said I feel that ImgIcon is an example of optimistic programming:
In rare cases it could be possible that e.g.
	obj := Gadgets.FindPublicObj("Icons.Picture");
or
	NEW(iCon);
fail and then you will get a -14.

Cheers, Edgar




More information about the Oberon mailing list