Date: Thu, 09 Oct 1997 10:11:42 METDST From: Marco Molteni <mm470047@silab.dsi.unimi.it> To: questions@freebsd.org Subject: adding C code to tcl and perl Message-ID: <199710090811.KAA05104@tac.silab.dsi.unimi.it>
next in thread | raw e-mail | index | archive | help
Hi all, Yes, I know this isn't FreeBSD specific. But, you know, when one is so used to the high quality replies from this list... ;-) First, some background informations. I'm doing a program as a term exam for the University. It should be a smarter bookmarks manager than the standard one that comes with web browsers like Netscape. Please note that the term "smarter" comes from the project description, not from my idea of it ;-) (Also, I'm planning to release a beta version, just to know how bad it is. I'll post an announce about it asap). It is my first Unix GUI programming experience, so I started having a look at some graphical toolkits. I excluded the raw Xlib and the commercial Motif. I found a very nice toolkit, Qt from Troll tech (www.troll.no). Now I'm evaluating Qt vs tcl/tk. Tk really impressed me. Easy and, IMHO, with a language (tcl) really clean and elegant, compared to perl, which seems to me cryptic and messy (please, no religion flames). And now to the subject: adding C code to tcl and perl. Please note that I'm new to tcl (I read Ousterhout's book, and fiddled with tcl/tk a little) and I just started reading the Camel book about perl. Now correct me if I'm wrong. I'm really disappointed to see that the only way to add new commands to tcl is compiling and linking a new tclsh or a new wish, while, if I use perl, I can simply add a require or use instruction (or similar) in the script from wich I want to use a C package (I know that obviously the package or library or how you call it must be linked with the perl library). Is it true, or I'm missing something and there's an esier way to add new commands to tcl? (eg, low-level capabilities that *must* be implemented in C, and not in tcl) Thanks Marco Molteni
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710090811.KAA05104>