Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sunybcs!sybil.cs.Buffalo.EDU!det From: det@sybil.cs.Buffalo.EDU (donald e tranquillo) Newsgroups: comp.lang.lisp Subject: Outputing a function to a file Message-ID: <17849@eerie.acsu.Buffalo.EDU> Date: 16 Feb 90 06:00:48 GMT Sender: nobody@acsu.Buffalo.EDU Reply-To: det@sybil.cs.buffalo.edu (donald e tranquillo) Organization: SUNY/Buffalo Computer Science Lines: 18 I have written a program that does some self modification, but I can't figure out a way to output the modified function to a file. I have tried using (SYMBOL-FUNCTION 'func-name), and then manipulating the lambda expression back into a form that can be EVALuated, yielding the original function, but once the function has been modified by my macro, it it converted into some kind of internal representation, something like . If I could find some way to recover the modified function body from the interpreter, I could just bind it to a variable, and output it, but, alas, I can't figure it out. So, does anyone know an easy way to recover the 'text' of this modified function? Any suggestion would be appreciated. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - Don Tranquillo | Disclaimer: | "Opinions are my own, even Bitnet : det%cs.Buffalo.edu@ubvm.bitnet | if they should be everyone's" Internet : det@cs.Buffalo.edu | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-