On Mon, May 05, 2008 at 11:58:50AM -0700, Yarek Kowalik wrote:
I'm a lisp newbie, but I am very determined to quickly learn it.
I'm using most recent SBCL with Weblocks. I'm connecting to my SBCL using slime. I'm intrested in examining the ession objects - what's the most effective way of examining the session object?
Here is what I have tried, but obviously I am doing something wrong:
CL-USER> (weblocks:active-sessions) (#<HUNCHENTOOT::SESSION {100245E011}>) CL-USER> (hunchentoot:session-value :remote-addr (#<HUNCHENTOOT::SESSION {100245E011}>) ) ; in: LAMBDA NIL ; (#<HUNCHENTOOT::SESSION {100245E011}>) ; ; caught ERROR: ; illegal function call ; ; compilation unit finished ; caught 1 ERROR condition
... at which point I get into the debugger... What am I doing wrong?
Using too many parentheses for the second argument, and using unreadable object syntax.
Here's something that might work instead:
(hunchentoot:session-value :remote-addr (first (weblocks:active-sessions)))
Zach