home *** CD-ROM | disk | FTP | other *** search
- From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
- Date: Fri, 31 Jul 1992 07:40:11 GMT
- Subject: Re: Tricks with pointers
- Message-ID: <2a78e8d2.1492.2comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!mips!sdd.hp.com!hp-cv!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.joehorn
- Newsgroups: comp.sys.hp48
- References: <2a74e987.1492comp.sys.hp48@hpcvbbs.cv.hp.com> <2a76f641.1492.1comp
- Keywords: pointers
- Lines: 26
-
- akcs.nomad@hpcvbbs.cv.hp.com [Adam Cowen] writes that changing a
- directory's contents when it is also on the stack changes it on the
- stack as well. Then akcs.levenson@hpcvbbs.cv.hp.com [william j.
- levenson] writes:
-
- > I tried it and, sure enough, the stack object is changed. Is this a
- > bug?
-
- No, it's a feature. The old Owner's Manual wrongly states in the note
- on the bottom of page 124: "If you recall a directory to the stack,
- and then change that copy on the stack, the actual directory object
- changes, as well." This is, of course, 100% backwards; it's actually
- the other way around, as is now correctly stated in the new Owner's
- Manual on page 7-8: "If you recall a directory to the stack and then
- change the directory contents, the copy on the stack will change as
- well."
-
- You can "turn off" this "feature" by doing a NEWOB on the directory on
- the stack, which copies it to temporary memory, so that it no longer
- points to the actual (named) directory.
-
- > BTW, I have a Rev D; Does Rev E do this?
-
- Yes; all HP 48 revisions do this.
-
- -Joseph K. Horn- -Peripheral Vision, Ltd.-
-