Browse thread
[Caml-list] Announcement: Equeue-2.0 (also about Shell pkg)
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-01-05 (18:06) |
From: | Adolf Mathias <dolfi@z...> |
Subject: | Re: [Caml-list] Tcl/Tk |
Christophe Raffalli wrote: > >> I guess that a native OCaml toolkit would be a real killer. > > > What would be nice is an OCaml/Tk !! > > replace completely Tcl by Ocaml :-) This is how one of the Perl/Tk-bindings came into existence. An amazing guy called Nick Ing-Simmons once stripped Tcl out of Tk and replaced all Tcl references by an abstract interpreter and neutral arguments etc., and this semi-automatically with an ingenious Perl script!! I just downloaded the Perl/Tk stuff from CPAN to check it out again, but it seems that the original approach was abandoned, and the whole thing seems too close to Perl and Tcl than it was in order to be useful for a direct Ocaml-binding :-( One point of attack might be the implementation of Tcl_EvalObjEx which apparently is the boiler plate for Tcl evaluation as a C-Ocaml-interface and provide a mapping between Tcl_Obj's and OCaml values. But then, the list of Tcl references inside Tk is still intimidatingly long (try gcc /usr/lib/tk8.3/tkAppInit.c -o test -ltk and watch the lovely linker error messages), and Tcl now provides a lot more non-windowing functionality to Tk, which probably caused the initial Perl/Tk-approach to be abandoned. Just guessing. Maybe some enlightened mind comes up with a surprising solution ;-) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners