Message from discussion Chapter 15 - Memoization - function previously defined
Received: by 10.52.187.65 with SMTP id fq1mr4630925vdc.6.1320876029632;
Wed, 09 Nov 2011 14:00:29 -0800 (PST)
Received: by 10.220.108.71 with SMTP id e7ls3513455vcp.3.canary; Wed, 09 Nov
2011 14:00:29 -0800 (PST)
Received: by 10.52.89.232 with SMTP id br8mr748076vdb.16.1320876029279; Wed,
09 Nov 2011 14:00:29 -0800 (PST)
Received: by d5g2000yqg.googlegroups.com with HTTP; Wed, 9 Nov 2011 14:00:29
Date: Wed, 9 Nov 2011 14:00:29 -0800 (PST)
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe)
Subject: Re: Chapter 15 - Memoization - function previously defined
From: ccc31807 <carte...@gmail.com>
To: Land of Lisp <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
On Oct 28, 1:45=A0am, Jon Kiparsky <jon.kipar...@gmail.com> wrote:
> I'm just now looking at the memoizations in chapter 15. I'm pretty
> sure I understand the concepts - pretty nice stuff - but trying to
> compile them, I get a warning that the functions were defined
> previously, and a compilation failure.
> I've worked out that I need to load the file manually, but is there
> any way to load this using C-C C-K (in slime, of course) or do I have
> to load this with (load)?
> This is under clisp, 2.48.
I use vi and the command prompt for my work, so this doesn't work for
me. I always write a function that compiles and loads the code so all
I have to do is call the function (after I (load) the file the first
time, of course).
(defun my-compile-load ()
(load (compile-file 'my-source-listing)))
I use much shorter names to reduce the typing, such as 'cl' (for
Compile and Load) and it works great for me.