functor name error [a..e]

For the Compleat Fan
Locked
ssqq
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

functor name error [a..e]

Post 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

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Re: functor name error [a..e]

Post 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
> 
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
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

Re: functor name error [a..e]

Post 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.

Locked