21st Century Smalltalk

December 23, 2006

Accesing Smalltalk from Lisp

Filed under: Lisp — pfisk @ 9:10 pm

lisp
Vista Smalltalk Site
Open Vista Smalltalk in IE7

Above, the Lisp “send” function is executed three times:

(send “hello world” ‘length)
–> 11

(send ‘(this is a (nested array) test) ‘inspect)
–> opens an inspector window on the list

(send (find-class “ClassBrowser”) ‘open)
–> opens a ClassBrowser window

Lisp function “send” and “send-super” have the syntax:

(send <receiver object> <selector symbol> <args…>)
(send-super <receiver object> <selector symbol> <args…>)

Each “send” function call begins a Smalltalk process which returns a result to Lisp upon completion. There can be multiple Lisp “send” functions active concurrently.

The Lisp interpreter has full macro capabilities and supports native background threads; it will nicely complement the user interface strengths of the Smalltalk bytecode interpreter.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.