Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - anemo

#1
newLISP in the real world / AutoComplete
April 10, 2011, 08:58:42 AM
So I've been playing around with newlisp for a while now(slowly but surely), using the editor that comes with the installer.



And I've come to miss auto-complete a lot.   Also currently using windows, some Linux stuff would be nice as well(but isn't as immediate of a concern).
#2
Whither newLISP? / Re: Why () not evaluate to nil?
February 28, 2011, 09:37:54 AM
Guess it was just a surprise for me :D



And a bigger one than I would have thought with () evaluating to nil being considered an unfortunate decision.
#3
Whither newLISP? / Why () not evaluate to nil?
February 27, 2011, 12:45:40 PM
Why doesn't () evaluate to nil?



it seems weird to be a lisp language and have that not be true.   Just a strange philosophical question I had when I hit something unexpected.



Just a random philosophical question I had.   To be honest it doesn't change much for me, but got curious since some "super serious 'other' lisp dude" would think that it's a big deal.
#4
Awesome I was going through some your posts before I went in to study.   Wish I had more time for the weekend.
#5
Thanks for the help,   I'll look at it in detail as soon as possible.  



I'll also have to do some more reading from the looks of it.   don't quite know what the ':' does except that it's used for controlling name spaces when using objects.   The use in the last example seems weird to me, and I'm not sure I know what a functor is(or at least by that name).



Didn't even realize I mixed up the parens on the original play-states list.   Which explains why lookup was being wierd when I tried to do it that way originally.
#6
How do I get a function to keep what it returns as it's "referance" instead of it's value?   Or some other logical method that lets you perform getting/setting without having to write lots of messy functions?



I'm also curious if there are anything around like practice sets.   That give you a problem then also show an example.   This tends to be the fastest way for me to learn since every language has little short cuts that aren't obvious till you see it your way and then someone else's.



(set 'player-states '(
(myself (levels ( (body 100) (focus 100) (will 100))) (status '()) )
(target (levels ( (body 100) (focus 100) (will 100))) (status '()) )
))

(define
(body-level target)
(lookup 'body (lookup '(target levels) player-states)) )

;works and sets body to 110
(setf
(lookup 'body (lookup '(target levels) player-states))
110)

(body-level myself)

;does not set body to 200, how do I get the 'referance' to wind up?
(setf (body-level 'myself) 200)

(body-level myself)