REPL - loading a file
Posted: Mon Dec 05, 2011 9:59 am
Is there a way to load code from a file in REPL?
I am new to LISP, have not programmed for a living in a long time.
I am working my way through 'Land of LISP'. Typed the code for the text game engine from Chapter 5. My computer crashed - the typing was gone like it never existed.
Now, it's easy enough to bang out the code in emacs, copy/paste it in. But that seems a little awkward.
Is it best to exec long chunks of code from emacs? Or is there a way to load a file in REPL?
I am new at this: feel free to hit me with a clue-bat.
I am new to LISP, have not programmed for a living in a long time.
I am working my way through 'Land of LISP'. Typed the code for the text game engine from Chapter 5. My computer crashed - the typing was gone like it never existed.
Now, it's easy enough to bang out the code in emacs, copy/paste it in. But that seems a little awkward.
Is it best to exec long chunks of code from emacs? Or is there a way to load a file in REPL?
I am new at this: feel free to hit me with a clue-bat.