It was definitely a DO form and I tested it to make sure it worked as expected but, you're right, I must have missed a pair of parenthesis somehow when doing the expansion
I was playing around with DO in Lispworks and did a macro expansion of a simple example. (BLOCK NIL (LET ((I 0)) (DECLARE (IGNORABLE I)) (DECLARE) (TAGBODY #:G727 (WHEN = (RETURN-FROM NIL (PROGN I 10))) (PRINT "hello") (SETQ I (1+ I)) (GO #:G727)))) This all makes sense to me except for th...
On my Lisp journey, there is something about lambda that has been bugging me. ;; This works, as expected. ((lambda (n) (* n n)) 3) ;; This doesn't work, as expected; (#'(lambda (n) (* n n)) 3) ;; This works, as expected. (mapcar #'(lambda (n) (* n n)) '(1 2 3)) ;; Why does this work also? (mapcar (l...
I'd highly appreciate real, short examples in this thread. I hardly know enough Lisp to make up my own, but I can guess what example code means. Can you write out an example, which cannot easily be replicated with Python? I'm learning Lisp at the moment and use Python fairly regularly but am certai...
You can have type declarations and primitive unchecked integer/floating point arithmetic in Clojure if you want it. http://clojure.org/java_interop#toc36 Clojure can be just about as fast as Java. Not sure if that's fast enough but it might be worth a try. Thanks much for the info! I will definitel...
Qt moc seems to actually be a great help in the task of writing the binding. Because it allows to automatically gather information about classes and it provides general method of invoking methods and properties of objects. I guess the main reason for absence of a complete Qt binding (and many other...
There's no doubt that it would be a significant project for a number of reasons (C++, the Qt meta object compiler, etc.) I have seen the guy doing some work on a Qt binding already and he looks a bit lonely. From the perspective of a company creating commercial software, the look of Gtk is a bit of ...
For folks that don't know, Nokia has decided to change to an LGPL license starting with Qt 4.5 in order to broaden usage of the toolkit. It's great news for those of us writing, or wanting to write, commercial applications using it. My company is currently using Qt and and we like it a lot...and we ...