Search found 7 matches

by aloyslisp
Wed Jan 07, 2009 11:08 pm
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

More precisely : After testing in CLisp. In (eval (read)), that's not the input that is evaluated but the (read) function. Though (eval (read)) with '(a b) -> (QUOTE (A B)) ; (READ) is evaluated : only macro-character transformation but (eval '(a b)) -> (eval (QUOTE (A B))) -> (A B) ; QUOTE function...
by aloyslisp
Wed Dec 31, 2008 7:54 pm
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

Thanks a lot,

Not exactly a response, but good flow of ideas to snuff around... A lot of reading and thinking.

I'll give here some news when concepts will be clearer for me. Details puzzle me. :D. But I'll catch it... ;-)

Happy new year, and good programming for all of yours.

Ivan
by aloyslisp
Wed Dec 31, 2008 3:39 pm
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

Yea ! That was exactly what I thought about. But I wonder if I was mistaking the process. I just explain. First attempt was the REPL standard. Afterwared was suppressing the eval as object is evaluated by the (write), as you say overquoting the read. As you say it's right that the (read) is evaluate...
by aloyslisp
Wed Dec 31, 2008 12:14 pm
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

Thanks a lot, I completely agree with your view. But it was not clear in the standards, as implementation is not (as is it's normal) not defined. And exactly as you wrote the '' (quote(quote...)) syntax works without problem (just a macro-function). My problem is : [*](read) with an input of '(a b )...
by aloyslisp
Wed Dec 31, 2008 3:44 am
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

Ok, I looked about :oops: (eval (read)) evaluates (read) and not '(a b) though (eval '(a b)) -> a not a function. But in the same way.... (read) -> '(a b) (eval (read)) -> [*]args evaluation : (eval '(a b)) [*]eval exec : (a b) When we apply write (write (a b)) args evaluation : a not a function -> ...
by aloyslisp
Wed Dec 31, 2008 2:54 am
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

Re: REPL problems in Lisp

The paragraph you quote is about mutability of data when read. The problem is exactly what it says. A is not a function. Anything you plan to EVAL needs to be valid Lisp code. When you READ (A B), (A B) is the return value. You can't evaluate this code unless A is a defined function and B is a defi...
by aloyslisp
Tue Dec 30, 2008 7:01 pm
Forum: Common Lisp
Topic: REPL problems in Lisp
Replies: 12
Views: 16288

REPL problems in Lisp

Hello folks, As I just begin a nTh CL version in Java, I just crash on some problems. It's not in the language implementation itself (witch is mainly easy), but in some details that you can grab in current implementations. X3J13 doesn't give advice about. Examples are tested on CLisp. Though... REPL...