4 ms·
Is there any good documentation out there on embedding Tcl? The current page about it on the Tcl site (which itself is a maze of twisty passages) is mostly dedi
by djur 11y ago
Is there any good documentation out there on embedding Tcl? The current page about it on the Tcl site (which itself is a maze of twisty passages) is mostly dedicated to trying to convince you not to embed it, and then there's some broken links to other sites.
- mzs 11y agoThere was some papers and a book (sorry can't remember anymore which one, there used to be more out there about TCL) I used but mostly looked at the expect source as an example.
- adunsmoor 11y agoTcl and the Tk Toolkit by J. Osterhout is an old reference but very useful for getting started with the C API to Tcl including embedding an interpreter. The last 1/3rd of the book is on writing Tcl applications in C. Also look at the the source files for the Tcl (tclsh) or Tk (wish) shells. They are fairly concise.
- davidw 11y agoThere is also an updated version out (with my name on the cover, to boot:-) http://amzn.to/1LQrLTK http://amzn.to/1LQrLTK Although even that is not super recent. Tcl's C API is very pleasant to work with, and its C code is a good read - except for the regex stuff, which are the first few files you'd see in an alphabetical listing.
- mzs 11y agoYep that was the book I was lent.