Search found 4 matches
- Sat Apr 14, 2012 6:49 am
- Forum: Whither newLISP?
- Topic: In-place parameter substitution
- Replies: 8
- Views: 16845
Re: In-place parameter substitution
How about this one for beginning: (define-macro (my-inc p0)(set p0 (+ (eval p0) 1))) The above fails with the following error when called through my sum function above: ERR: symbol expected in function set : p0 What I'm interested is having a function/macro/fexpr that can modify its arguments in-pl...
- Thu Apr 12, 2012 5:08 pm
- Forum: Whither newLISP?
- Topic: In-place parameter substitution
- Replies: 8
- Views: 16845
Re: In-place parameter substitution
Let me clarify my question: Is it possible to create my version of inc, my-inc? (define (sum (x 0)) (my-inc 0 x)) (sum 1) ;=> 1 (sum 2) ;=> 3 sum ;=> (lambda ((x 0)) (my-inc 3 x)) My gut instinct tells me in order to have a self-modifying code like the above, my-inc must have a reference to the encl...
- Thu Apr 12, 2012 4:10 pm
- Forum: Whither newLISP?
- Topic: In-place parameter substitution
- Replies: 8
- Views: 16845
In-place parameter substitution
Hi, is it possible to create a user-defined function much like what inc does: in-place parameter substitution, or is this only available for built-in functions?
Where do newLISPers hangout? Is there a #newlisp IRC channel somewhere?
Where do newLISPers hangout? Is there a #newlisp IRC channel somewhere?
- Thu Apr 12, 2012 4:03 pm
- Forum: newLISP in the real world
- Topic: Integer comparison bug
- Replies: 2
- Views: 2551
Integer comparison bug
Loving the language so far.
The above returns true. Shouldn't it be nil instead? Where can I submit bug reports? Do we have an bug tracker?
Code: Select all
(= 9223372036854775807 9223372036854775808)