functor name error [a..e]

For the Compleat Fan

functor name error [a..e]

Postby ssqq » Wed Jul 06, 2016 4:31 am

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

Re: functor name error [a..e]

Postby TedWalther » Fri Jul 08, 2016 8:09 am

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.
TedWalther
 
Posts: 602
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC

Re: functor name error [a..e]

Postby ssqq » Fri Jul 08, 2016 1:12 pm

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


Return to Anything else we might add?

Who is online

Users browsing this forum: No registered users and 3 guests

cron