functor name error [a..e]

Started by ssqq, July 05, 2016, 09:31:17 PM

Previous topic - Next topic

ssqq


> (define a:a)
ERR: context expected in function define : a
> (define b:b)
ERR: context expected in function define : b
> (define c:c)
ERR: context expected in function define : c
> (define d:d)
ERR: context expected in function define : d
> (define e:e)
ERR: context expected in function define : e
> (define f:f)
nil

TedWalther

#1
Try (define (a:a)) instead of (define a:a) if you want to define the default functor; the functor is a function.  If you truly want to define a:a (not the default functor), then... yes, what is the right result.



By the way, I get this result:



newLISP v.10.6.2 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h

> (define a:a)
nil
> a
a
> (context? a)
true
>
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

ssqq

#2
thanks, I get it use 10.6.0, I would try it use 10.7.0.



when I use 10.7.0 it is ok.