FUNCALL and GETDEF

Q&A's, tips, howto's

FUNCALL and GETDEF

Postby cameyo » Fri Oct 26, 2018 7:29 am

Hi all,
i'm looking for the functions FUNCALL and GETDEF.
Are there equivalent functions in newLisp?
Sorry for dumb question...i'm a newbie.
cameyo
cameyo
 
Posts: 15
Joined: Sun Mar 27, 2011 3:07 pm

Re: FUNCALL and GETDEF

Postby newBert » Fri Oct 26, 2018 4:33 pm

I think there is no need to 'funcall' in newLisp, because variable name space and function name space are not separated as in Common Lisp, and maybe for other reasons, but I may be mistaken...

As for 'getdef', I can't give an answer because i don't know what is the use of this function in CL. Sorry !
BertrandnewLISP v.10.7.4 64-bit on Linux (Bodhi Linux 4.5)
newBert
 
Posts: 132
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Re: FUNCALL and GETDEF

Postby cameyo » Sat Oct 27, 2018 6:58 am

Hi newbert,
I have found these functions in an old article on Lisp (to define a function it use DE, maybe Portable Standard Lisp).
GETDEF gets the definition of a function.
Thanks for infos.
cameyo
 
Posts: 15
Joined: Sun Mar 27, 2011 3:07 pm

Re: FUNCALL and GETDEF

Postby newBert » Sat Oct 27, 2018 4:44 pm

cameyo wrote:Hi newbert,
I have found these functions in an old article on Lisp (to define a function it use DE, maybe Portable Standard Lisp).
GETDEF gets the definition of a function.
Thanks for infos.

A Function in newLISP is not a "closure", so we can examine its content typing its name without parentheses :
Code: Select all
> (define (double x) (+ x x))
(lambda (x) (+ x x))
> double
(lambda (x) (+ x x))

Thank you for info about GETDEF
BertrandnewLISP v.10.7.4 64-bit on Linux (Bodhi Linux 4.5)
newBert
 
Posts: 132
Joined: Fri Oct 28, 2005 5:33 pm
Location: France


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron