Path: utzoo!attcan!uunet!mcsun!cernvax!chx400!chx400!itrpe!HP_21!mheubi From: mheubi@.itr.uu.ch (Heubi Matthias) Newsgroups: comp.sys.handhelds Subject: Re: hp48sx: variable rename? Message-ID: Date: 2 Apr 91 20:17:49 GMT References: Sender: lp@itrpe.UUCP Lines: 34 nelson@skid.ps.uci.edu (Matt Nelson) writes: >Is there a way to RENAME a variable (esp. a directory) on the 48sx? >As far as I know, the only way to do this is to recall the variable to >the stack, store it under the new name, and delete the original copy of >the variable. That's true. >This is fine for most objects, but renaming directories in >this fashion is extremely memory-intensive (it creates a second copy of the >entire directory on the stack) and very slow. Try to rename the root >directory of a large directory tree this way; there is a good chance that >you wont have enough memory, and if you do, it will take mucho time. That's wrong! If you recall a directory, no copy is created! try to modify the version on the stack, and then DROP it. The original will also be modified! The clean solution is to RCL the object to the stack, PURGE it, and then STO it under the new name. Tho only problem on this way will be, that the renamed object is now ordered as the first variable. >-Matt Nelson > nelson@psroot.ps.uci.edu -- ----------------------------------------------------------------------- Matthias Heubi / NeXT / Atari ST / HP-48SX / mheubi@itrpe.uu.ch ----------------------------------------------------------------------- ----------------------------------------------------------------------- Matthias Heubi / NeXT / Atari ST / HP-48SX / mheubi@itrpe.uu.ch -----------------------------------------------------------------------