mind spin with 'let ?

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

mind spin with 'let ?

Post by newdep »

Lutz,

is it correct that 'inc is always working on globals ?


(MAIN)-> (delete 'a)
true
(MAIN)-> (let (a 1) (+ a 1))
2
(MAIN)-> a
nil
(MAIN)-> (delete 'a)
true
(MAIN)-> (let (a (inc a)))
nil
(MAIN)-> a
1

a is 1 ?? i dont get it actualy...
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

goodmorning newdep, have you been checking parenthesis lately ?
Making these strange remarks here isnt very lisp wise...

Yeah i know... i know ;-)
-- (define? (Cornflakes))

Locked