Today seems to be a features day :)
This feature has the extremely simple implementation (unless I'm missing something here), but it makes the life easier when it comes to the thread function's arguments. So, with this patch you can write the next code:
(defun f (x y) (* x y))
(sb-thread:make-thread #'f :args '(6 7))
without messing with the wrapper lambda.
Maybe this simple thing does not deserve a post, but I am really happy to see it working. The patch is here.
Subscribe to:
Post Comments (Atom)
This is in the upstream now, with a change: the keyword is :arguments, not :args. Thanks to Paul Khuong for fixing and extending the original patch!
ReplyDelete