Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!bader+ From: bader+@andrew.cmu.edu (Miles Bader) Newsgroups: comp.sys.handhelds Subject: Re: PRG-> and ->PRG Message-ID: Date: 10 Oct 90 19:26:00 GMT References: <3464@mindlink.UUCP>, <20905@orstcs.CS.ORST.EDU> Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 16 In-Reply-To: <20905@orstcs.CS.ORST.EDU> louxj@jacobs.CS.ORST.EDU (John W. Loux) writes: > Do you mind if I ask what good this is? Aside from that, something similar > can be accomplished by either creating the program as a LIST or converting > the program to a list and then using OBJ-> to decompose to the stack. The > result is the same with the exception that the program delimiters are not > among the commands and functions on the stack. ->LIST will recompose the > object and EVAL will run it as a program. The problem with using a list as the program is that it won't automatically be evaluated when you press the key corresponding to a variable in which it is stored. A while ago I wanted to write a little program which would automagically cons up a program (which simply called another one with a particular set of args) and store it in a handy variable. But I couldn't figure out how to do this... -Miles