Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Stale Pointers Message-ID: <2588@internal.Apple.COM> Date: 30 Jun 89 00:26:18 GMT Sender: usenet@Apple.COM Distribution: usa Organization: Objects-R-Us, Apple Computer, Inc. Lines: 15 References:<2394@ur-cc.UUCP> <27101@coherent.com> <3232@portia.Stanford.EDU> In article <3232@portia.Stanford.EDU> duggie@Jessica.stanford.edu (Doug Felt) writes: > (This problem shows up often in Object Pascal as well, where the > notational convenience of being able to use 'object.foo' instead of > 'object^^.foo' leads one to forget that dereferencing is taking place. But the Pascal compiler recognizes these cases and generates safe code (or gives you a compile-time error). Specifically, object.foo := NewHandle(...) dereferences the object after the call to NewHandle. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1