chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Trivial error: Error: call of non-procedure: #<unspe


From: Peter Bex
Subject: Re: [Chicken-users] Trivial error: Error: call of non-procedure: #<unspecified>
Date: Sat, 4 Jan 2014 18:33:10 +0100
User-agent: Mutt/1.4.2.3i

On Sat, Jan 04, 2014 at 06:28:01PM +0100, address@hidden wrote:
> Hi folks (and a great new year!), 

Hi mfv,

> ;; load the stuff with a func
> (define (fill-unitlocs alist)
>       (cond ((= (length alist) 0) 
>                       (print "Loading finished: " (length alist) ) )
>             (else (
>               (hash-table-set! unitlocs (car (car alist)) (cdr (car
> alist)))
>               (fill-unitlocs (cdr alist))))))

[...]

> Error: call of non-procedure: #<unspecified>

I think that's caused by the strangely-indented paren following
the "else" keyword.  It tries to apply the result of hash-table-set!
(as if it were a procedure) to the result of the recursive call to
fill-unitlocs.

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]