[comp.sys.mac.programmer] Bug in MPW 2.0.2 Link tool

norbert@iraul1.ira.uka.de (Norbert Lindenberg) (04/20/88)

One bug seems to have been fixed in the MPW 2.0.2 Link tool, but I
discovered yet another one.

The bug occurs if you declare an object type in the implementation part
of a unit and define a new method for this type (new as opposed to
overriding a superclass method), and let the linker optimize method
calls (-opt option). The new method does not show up in the method table
listing produced with the -p option, and the linker still produces a
%_SelProcs segment. According to MacApp DA newsletter 1/5, this segment
should never be present in an optimized program. When I start the
program, it drops into MacsBug with a User break: Method not found
message when the new method is called.

Any comments, Larry or Jordan?

-- Norbert