chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] invalid-procedure-call-handler again


From: felix winkelmann
Subject: Re: [Chicken-users] invalid-procedure-call-handler again
Date: Sun, 20 Mar 2005 14:06:10 +0100

On Wed, 16 Mar 2005 22:35:51 +0100, Sunnan <address@hidden> wrote:
> So, I'm playing with invalid-procedure-call-handler, with the intention
> of doing string-deconstruction/matching on the invalid procedure (I'm
> dreaming of cadadar, ahahahaha!).
> 
> But I can't even print out the proc, let alone do any operations on it.
> What data type does undefined procedures belong to?
> 
> (invalid-procedure-call-handler
>        (lambda (proc args)
>      (print "nice try " proc)))
> 
> works fine if I go:
> 
> ('cadadar list-of-lists)
> -> nice try cadadar
> 
> but errors if I omit the '.
> 

If you omit the quote, then you'll get an unbound variable error.
Remember that the operator still has to be evaluated. For something
like cadadar to work, you probably should use `unbound-variable-value'
(lolevel unit).


cheers,
felix




reply via email to

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