> (defun ekdToggle (f @[EMAIL PROTECTED]
(valuesPair (list t nil)))
> "When you want the OTHER value a function returns."
> (car (remove (f) valuesPair)))
>
>> (ekdToggle 'leIsInstSelectable)
>
> *Error* eval: undefined function - f
>
> Hey! What gives?
>
The value of f is a symbol. The symbol's function slots contains the
actual address of the function
to be called.
When you do (f) you are accessing the function slot of the symbol f, which
is not what you intend to do.
What you should do is use funcall(f) or apply(f args).
Note that, when valuePair is '(t nil), it's equivalent to a not(), just a
little overkill.
Cheers,
Stéphane


|