From: Paul Griffioen on 17 Nov 2009 07:16 On Tue, 17 Nov 2009 12:50:33 +0100, Peter Herth wrote: > Paul Griffioen schrieb: > > >> I was referring to the following FIXME from Ltk's code: >> >> "The problem here is that wish sends us error-messages on the same >> stream that we use for our own communication. It would be good if we >> could get the error-messages (that are presumably written to stderr) >> onto a separate >> stream. The current workaround is based on the observation that wish >> error messages always seem to end on a newline, but this may not always >> be so. READ-ALL would be a bad idea anyways, as in that case we could >> accidentally >> snarf a real message from the stream as well, if it immediately >> followed an error message." > > Hehe, the comment is still in the newest development version, but errors > should come back as an S-expression. All evaluation of Tcl code sent > from LTk now happens in a catch, which in the case of an error sends > back the error properly wrapped. > > >> It has been a while since I looked at Ltk but I see now it is still in >> the code. Issues with reading from Tcl/Tk streams led me to write a >> reader for Tcl. > > A Tcl reader sounds interesting, I need to have a look :) > Let me know what you think > >> Was I correct in my statement that Ltk is limited to libraries that it >> has wrappers for? What I like about Ltk is that it is completely in >> Lisp, but I want complete access to Tcl/Tk. I don't mind programming in >> Tcl so it's not a big deal for me, but a Lisp interface is nice. >> > Yes, to have Lisp wrappers for Tcl code one has to write them :). If you > are happy to write Tcl code, then your approach is of course more > flexible. The idea behind LTk is to not require Tcl knowledge when using > it. However, with the infrastructure in LTk it should not be a lot of > work to wrap arbitrary Tcl libraries in a similar fashion. I'm not really happy writing Tcl code, but I don't like writing wrappers either :) It's a trade-off, but scripting GUIs with Tcl isn't too bad. I have been thinking about generating Ltk wrappers. Do you think that would be possible? Paul
First
|
Prev
|
Pages: 1 2 3 Prev: grabbing key presses Next: Authentic Designer Handbags EVOGUER.COM 15% OFF DISCOUNT!!!! |