home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp48 / 6949 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.6 KB

  1. From: akcs.levenson@hpcvbbs.cv.hp.com (william j. levenson)
  2. Date: Tue, 12 Jan 1993 22:40:02 GMT
  3. Subject: Re: Moving directories (was: Re: some general questions for HP48)
  4. Message-ID: <2b53457b.2613.4comp.sys.hp48.1@hpcvbbs.cv.hp.com>
  5. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-cv!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.levenson
  6. Newsgroups: comp.sys.hp48
  7. References: <C0K50D.3BG@news.iastate.edu> <C0qGvp.5MC@gamma.irdeto.nl>
  8. Lines: 23
  9.  
  10. Jurgen N.E. Bos writes that recalling the contents of a directory to the
  11. stack, purging the original directory, and then storing it in a new place
  12. can loose your directory.  Well, I just tried it and it worked fine.  I
  13. initially thought that it might cause a problem also.  But, I think what
  14. must happen is that when PGDIR goes through and purges each variable in
  15. the directory, it sees that the variable is referenced on the stack,
  16. copies that object to TEMPOB area and updates the reference.  
  17.  
  18. That's the only thing I can think of because if I recall a directory's
  19. contents to the stack and then PURGE a variable in the directory, sure
  20. enough, the copy on the stack is changed as well (because the object on
  21. the stack is just a pointer to memory, of course).  It seems that PURGE
  22. does not check for references inside directory objects on the stack.  But
  23. it DOES  seem that PGDIR does this for you.
  24.  
  25. I seem to recall Joe Horn and Bill Wickes discussing this type of stuff
  26.  and the FPGIDR (I'm not sure if that name is right) program.  I'm not
  27. sure if they touched on this topic, but it's on one of the goodies discs,
  28. if you're interested.
  29.  
  30. Let me know if I'm off base here.
  31.  
  32. Bill Levenson
  33.  
  34.