home *** CD-ROM | disk | FTP | other *** search
- From: akcs.levenson@hpcvbbs.cv.hp.com (william j. levenson)
- Date: Wed, 29 Jul 1992 20:40:02 GMT
- Subject: Re: Tricks with pointers
- Message-ID: <2a76f641.1492.1comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Path: sparky!uunet!wupost!sdd.hp.com!hp-cv!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.levenson
- Newsgroups: comp.sys.hp48
- References: <2a74e987.1492comp.sys.hp48@hpcvbbs.cv.hp.com>
- Keywords: pointers
- Lines: 22
-
- Regarding this post about purging directories that are referenced on the
- stack:
-
- I believe that Adam Cowen is slightly mistaken about the stack. When the
- directory is purged while it is on the stack, the directory is not copied
- to the stack, but to temporary memory. The stack contains a pointer that
- refers to the new memory location. The stack *always* contains only
- pointers (TRUE?).
-
- Regarding the phenomenon of puging a variable in a directory that is on
- the stack:
-
- I tried it and, sure enough, the stack object is changed. Is this a bug?
- It seems to me that if you recall the directories contents to the stack,
- you would want that to remain constant, even if the actual directory is
- changed. This obviously happens because the PURGE command doesn't
- recognize that the variable it purges is referenced by the stack and
- doesnt attempt to do a NEWOB to rectify the reference. Very interesting!
-
- Bill
-
- BTW I have a Rev D; Does Rev E do this?
-
-