Page 1 of 1

functor name error [a..e]

Posted: Wed Jul 06, 2016 4:31 am
by ssqq

Code: Select all

> (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

Re: functor name error [a..e]

Posted: Fri Jul 08, 2016 8:09 am
by TedWalther
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:

Code: Select all

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
> 

Re: functor name error [a..e]

Posted: Fri Jul 08, 2016 1:12 pm
by ssqq
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.