newLISP Fan Club

Forum => newLISP in the real world => Topic started by: cameyo on October 26, 2018, 12:29:24 AM

Title: FUNCALL and GETDEF
Post by: cameyo on October 26, 2018, 12:29:24 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
Title: Re: FUNCALL and GETDEF
Post by: newBert on October 26, 2018, 09:33:21 AM
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 !
Title: Re: FUNCALL and GETDEF
Post by: cameyo on October 26, 2018, 11:58:55 PM
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.
Title: Re: FUNCALL and GETDEF
Post by: newBert on October 27, 2018, 09:44:54 AM
Quote from: "cameyo"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 :

> (define (double x) (+ x x))
(lambda (x) (+ x x))
> double
(lambda (x) (+ x x))

Thank you for info about GETDEF