Thread View: alt.lang.ml
1 messages
1 total messages
Started by Todd Simpson
Thu, 12 Nov 1992 23:19
SML(NJ) on NeXT
Author: Todd Simpson
Date: Thu, 12 Nov 1992 23:19
Date: Thu, 12 Nov 1992 23:19
43 lines
1879 bytes
1879 bytes
I would like to use SML (NJ) as a serious development tool on the NeXT, meaning
that it should be well integrated with Objective C and Interface Builder. One
should allow:
- messages sent from SML to ObjC objects
- messages sent from ObjC to SML "objects"
The second requirement is paramount; I see application shells constructed with
interface builder, and core functionality (implemented in SML) invoked via the
target/action protocol.
>From SML, the interface might look something like
signature ObjC =
sig
type Class
type Object
type Method
datatype Value = INT of int | OBJ of Object | ...
val class : string -> Class
val inst_method : Class * string -> Method
val class_method : Class * string -> Method
val invoke_inst : Object * Method * Value list -> Value
val invoke_class : Class * Method * Value list -> Value
(* Register a procedure for use (as a method) by ObjC *)
val register : string * (Value list -> Value) -> unit
(* Produce an object file containing registered methods *)
val export : string -> unit
end
Of course, this integration depends on being able to generate an object file
consisting of the ml runtime system and a few symbols visible to the linker.
Has anyone done, or thought about, this?
Please mail me your responses, and I will summarize if necessary.
simpson@cpsc.ucalgary.ca
Thanks
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads