Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
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)
X-BeenThere: land-of-lisp@googlegroups.com
Received: by 10.220.108.71 with SMTP id e7ls3513455vcp.3.canary; Wed, 09 Nov
 2011 14:00:29 -0800 (PST)
MIME-Version: 1.0
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
 -0800 (PST)
Date: Wed, 9 Nov 2011 14:00:29 -0800 (PST)
In-Reply-To: <d3fd9418-a283-4783-bc63-f74b782c9533@f13g2000vbv.googlegroups.com>
References: <d3fd9418-a283-4783-bc63-f74b782c9533@f13g2000vbv.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe)
Message-ID: <dc51fb96-a44e-4ca2-9f71-ac9490cb6d02@d5g2000yqg.googlegroups.com>
Subject: Re: Chapter 15 - Memoization - function previously defined
From: ccc31807 <carte...@gmail.com>
To: Land of Lisp <land-of-lisp@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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.