This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Common2.lsp

7 posts · 9526 views

How do I get acess to common2.lsp and other files that are loaded every time when i start xlisp?

Is it possible to see the definition of remove-duplicates function and other functions inside common2.lsp?

Thx for all and sorry for my english

Re: Common2.lsp

m0rk4i wrote:Is it possible to see the definition of remove-duplicates function and other functions inside common2.lsp?
Do you mean opening the file common2.lsp? You can open it using a text editor.

Re: Common2.lsp

But where is this file? I can´t find

Obs: Im using Xlisp32

Re: Common2.lsp

m0rk4i wrote:But where is this file? I can´t find

Obs: Im using Xlisp32
Sorry, I don't know about Xlisp32.

If you are trying to learn some kind of Lisp, you can try learning Common Lisp of Scheme. The book Practical Common Lisp is a very good book for learning Common Lisp.

Re: Common2.lsp

Let me be more specific: When we ran any lisp interpreter the files common2.lsp and common.lsp are loaded. These files contains the definitions of several functions like remove-duplicates. So, where can i find these files? Im using xlisp32 and wanna know if is it possible to read the content of these files and the format will be something like this:

(defun remove-duplicates (list)
(cond
((equal ....

For example, in C language we can open the header files like stdio.h and find the printf definition

Re: Common2.lsp

m0rk4i wrote:Let me be more specific: When we ran any lisp interpreter the files common2.lsp and common.lsp are loaded. These files contains the definitions of several functions like remove-duplicates. So, where can i find these files? Im using xlisp32 and wanna know if is it possible to read the content of these files and the format will be something like this:

(defun remove-duplicates (list)
(cond
((equal ....

For example, in C language we can open the header files like stdio.h and find the printf definition
Yes, I understood that, but I don't know anything about xlisp32. You have to look inside the folder where the program xlisp32 is and locate those files, I can't do it for you because I don't have access to your computer.