[comp.sys.mac.programmer] C Programming Bugs

lsr@Apple.COM (Larry Rosenstein) (03/16/90)

In article <530@fwi.uva.nl> freek@fwi.uva.nl (Freek Wiedijk) writes:
> In article <1990Mar15.052046.20348@athena.mit.edu>
> rsfinn@athena.mit.edu (Russell S. Finn) writes:
> >
> >The bug is that MaxMem is being called with an argument of $00800000,
> >instead of the address of a longword (IM II-38);
> 
> This should be a lesson to all: NEVER program in C!  :-) :-) :-)

In writing my ApplicationMenu INIT, I've seen this kind of bug in many 
applications.  You would be surprised to see how many application pass the 
address of a Point to MenuSelect instead of the Point itself.

Larry Rosenstein, Apple Computer, Inc.
Object Specialist

Internet: lsr@Apple.com   UUCP: {nsc, sun}!apple!lsr
AppleLink: Rosenstein1