Search found 538 matches

by nuntius
Thu Oct 10, 2013 9:03 pm
Forum: Common Lisp
Topic: How do I approxmate C pointer dereferencing?
Replies: 8
Views: 12715

Re: How do I approxmate C pointer dereferencing?

It sounds like you want foreign-slot-value. http://common-lisp.net/project/cffi/manual/html_node/foreign_002dslot_002dvalue.html#foreign_002dslot_002dvalue You could wrap this in a helper function or macro to make it shorter for the common cases. It would take a great deal more work to get a short o...
by nuntius
Thu Oct 10, 2013 8:52 pm
Forum: Homework
Topic: error i am not able to correct
Replies: 3
Views: 9794

Re: error i am not able to correct

The parameters are evaluated when you type them in, before they are passed to the lambda form. Use a quote to protect the character. (Or a macro if quotes aren't allowed.)
by nuntius
Tue Oct 08, 2013 7:18 pm
Forum: Homework
Topic: Knight Project
Replies: 6
Views: 16411

Re: Knight Project

What data structure are you using to store the game board? (Or what type of structure do you want to use?)
by nuntius
Tue Oct 08, 2013 7:12 pm
Forum: Common Lisp
Topic: object insertion automatically x and y direction
Replies: 3
Views: 6376

Re: object insertion automatically x and y direction

Ahh, this forum is not very busy with AutoCAD users. We have a list of links to other sites that may be more helpful.

viewtopic.php?f=29&t=4036
by nuntius
Mon Oct 07, 2013 5:50 pm
Forum: Common Lisp
Topic: object insertion automatically x and y direction
Replies: 3
Views: 6376

Re: object insertion automatically x and y direction

Are you doing this in AutoCAD?
by nuntius
Fri Oct 04, 2013 5:45 pm
Forum: Common Lisp
Topic: how do i pass structs by value with cffi-libffi?
Replies: 6
Views: 19353

Re: how do i pass structs by value with cffi-libffi?

Just send your question to [email protected]

Subject: "how do i pass structs by value with cffi-libffi?"
Body: similar to your post here, possibly a link here.
by nuntius
Thu Oct 03, 2013 9:18 am
Forum: Scheme
Topic: Finding an element in a list
Replies: 1
Views: 22555

Re: Finding an element in a list

Could you provide more details on what you want to do and any possibilities you have considered?

Is this a homework problem?
by nuntius
Tue Oct 01, 2013 6:05 pm
Forum: Common Lisp
Topic: How do i fill in all of the elements of a matrix in Lisp?
Replies: 2
Views: 5160

Re: How do i fill in all of the elements of a matrix in Lisp

Is this something like what you want?

Code: Select all

(let ((x (make-array '(3 4) :initial-element 2)))
  (dotimes (m (array-dimension x 0))
    (dotimes (n (array-dimension x 1))
      (format t "~A " (aref x m n)))
    (format t "~%")))
by nuntius
Sat Sep 28, 2013 7:24 pm
Forum: Common Lisp
Topic: Working on a computational geometry lib...
Replies: 6
Views: 12617

Re: Working on a computational geometry lib...

I really think the Lisp community needs to engage the C/C++ community more. Look at the success Clojure (JVM Lisp) has had to get a feel for the possibilities. Its not always glorious work, but it grants rapid access to large repositories of existing code. ECL is a good implementation for such tasks...
by nuntius
Sat Sep 28, 2013 6:57 pm
Forum: Homework
Topic: counting non-numeric characters.
Replies: 5
Views: 15453

Re: counting non-numeric characters.

When you reach a nested list, you need to traverse down that branch and also keep traversing the current list...