Search found 40 matches

by macrolyte
Mon May 26, 2014 1:22 pm
Forum: Emacs
Topic: Quicklisp Not Loading Systems Weirdness: Help needed
Replies: 4
Views: 30540

Quicklisp Not Loading Systems Weirdness: Help needed

I recently installed SBCL (MS Windows not Cygwin), Emacs (MS Windows not Cygwin), Slime, and Quicklisp. The problem is Quicklisp; when I first installed it everything was okay until: (ql:add-to-init-file) Which failed and froze the REPL! I realized there wasn't a .sbclrc file so I created it, and tr...
by macrolyte
Sat May 24, 2014 1:25 pm
Forum: Common Lisp
Topic: Accessor values question
Replies: 8
Views: 15073

Re: Accessor values question

Hey, Goheeca! I've been using Cygwin on Windows 7, (don't laugh), for development which doesn't have a port for SBCL . So I went to their site, downloaded the x86 installer, ran it, started SBCL , evaluated *features* and there was absolutely no thread package! So a quick search turned up: Threads a...
by macrolyte
Fri May 23, 2014 4:25 pm
Forum: Common Lisp
Topic: Accessor values question
Replies: 8
Views: 15073

Re: Accessor values question

The reason is that Common Lisp functions do not handle multiple values by default. Multiple values are explained here: Practical Common Lisp , Chapter 20, Section Multiple Values Common Lisp, the Language, 2nd Edition [CLtL2], Section 7.10.1 Constructs for Handling Multiple Values CLtL2 is older th...
by macrolyte
Fri May 23, 2014 10:29 am
Forum: Common Lisp
Topic: Accessor values question
Replies: 8
Views: 15073

Re: Accessor values question

Sorry, but it's not really clear what you mean. If you want to use #'* with multiple values then use MULTIPLE-VALUE-CALL : (multiple-value-call #'* (values 3 4)) => 12 If you want to replace VALUES by a different function then you could use APPLY and LIST : (apply #'* (list 3 4)) => 12 Is this what...
by macrolyte
Thu May 22, 2014 7:28 am
Forum: Common Lisp
Topic: Accessor values question
Replies: 8
Views: 15073

Accessor values question

Hey,
is there a function like values that would allow me to do this?

Code: Select all

       (* (values 3 4)) ;; doesn't work, but is there something that does?
Thanks.
by macrolyte
Fri May 16, 2014 8:44 am
Forum: Common Lisp
Topic: Nested Lambda Expressions and Such...
Replies: 4
Views: 10295

Re: Nested Lambda Expressions and Such...

VIELEN DANK! . I had noticed in the stepper that there appeared to be only (2) applications were occurring, (for the 'b and 'm lambda functions). I was thinking of adding another funcall, then I saw your reply. I haven't been well of late, so please bear with my shortcomings for now. Again, thanks.
by macrolyte
Thu May 15, 2014 6:30 pm
Forum: Common Lisp
Topic: Nested Lambda Expressions and Such...
Replies: 4
Views: 10295

Re: Nested Lambda Expressions and Such...

Thanks for the reply... I learned most of what you posted when I started learning about closures, but hey, since I'm still a n00b, better sage than sorry. I had to look at the situation for myself and realized that I had to approach the problem in pieces. On the webpage I posted above: (defun smalle...
by macrolyte
Wed May 14, 2014 4:37 pm
Forum: Common Lisp
Topic: Nested Lambda Expressions and Such...
Replies: 4
Views: 10295

Nested Lambda Expressions and Such...

Greets. I'm having a problem understanding nested lambda expressions. In particular, the example I've banged my head on: (λ(a b)(λ(m)(m a b))) ;; Where m is a function So ... ((λ(a b)(λ(m)(funcall m a b))#'*) 3 5) ;; returns => #<SYSTEM-FUNCTION *>in clisp/emacs/slime The only thing I was able t...
by macrolyte
Thu Apr 17, 2014 11:26 am
Forum: Common Lisp
Topic: DEFGENERIC with DECLARE statements?
Replies: 4
Views: 9194

Re: DEFGENERIC with DECLARE statements?

Open Genera Documentation :=>Here.
by macrolyte
Sat Mar 22, 2014 6:39 pm
Forum: Common Lisp
Topic: Function won't recurse?!!
Replies: 4
Views: 7379

Re: Function won't recurse?!!

A tail recursive solution (but it still needs help with TCO from the implementation not to blow the stack) Since all the structure is made within the function it's safe to do du destructive reverse. (defun dotted-list (lst) (labels ((aux (lst i acc) (if lst (aux (cdr lst) (1+ i) (cons (cons (car ls...