home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / tcl / tcl-faq.part01.gz / tcl-faq.part01
Text File  |  1994-09-28  |  38KB  |  867 lines

  1. Newsgroups: comp.lang.tcl,comp.answers,news.answers
  2. Path: lvirden
  3. From: lvirden@cas.org (Larry W. Virden)
  4. Subject: FAQ: comp.lang.tcl Frequently Asked Questions (1/5)
  5.     (Last updated: Sept 28, 1994)
  6. Followup-To: comp.lang.tcl
  7. Summary: A regular posting of the comp.lang.tcl Frequently Asked Questions 
  8.     (FAQ) and their answers.  This is the first of five parts.
  9.     This part introduces Tcl and Tk and discusses documentation, etc.
  10. Originator: lvirden@cas.org
  11. Keywords: tcl, extended tcl, tk, expect
  12. Sender: lvirden@cas.org
  13. Reply-To: lvirden@cas.org (Larry W. Virden)
  14. Approved: news-answers-request@MIT.Edu
  15. X-Url: http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/part1/faq.html
  16.  
  17. Archive-name: tcl-faq/part1
  18. Version: 6.1
  19. Last-modified: Sept 28, 1994
  20.  
  21.  
  22.     For more information concerning Tcl (see "tcl-faq/part2"),
  23. (see "tcl-faq/part3"), (see "tcl-faq/part4"), or (see "tcl-faq/part5").
  24. Also (see "tcl-faq/commercial-uses"), (see "tcl-faq/usage"), 
  25. (see "tcl-faq/bibliography").
  26.  
  27. Index of questions:
  28.  
  29. I.   Origin of the comp.lang.tcl FAQ information and
  30.     to whom do I contact for more information about the FAQ?
  31. II.  What is Tcl?  Tk?  Extended Tcl?  Rush?  What is Tcl _not_? 
  32. III. Do these packages run on my machine?
  33.     A. Unix
  34.     B. MacOS
  35.     C. INTEL DOS-like systems
  36.     D. VMS
  37.     E. AmigaDOS
  38.     F. NeXT
  39.     G. Other
  40. IV.  Other than C, What languages can talk to tcl/tk?
  41.     A. Shell
  42.     B. C++
  43.         C. Modula-3
  44.     D. Eiffel
  45.     E. Ada
  46.     F. Perl
  47.     G. Prolog
  48.     H. Other
  49. V.   What training material is available?
  50.     A. Training courses, materials, etc.
  51.     B. Time-related seminars, conferences, sessions.
  52. VI.  Where do I report problems, bugs, or enhancements about Tcl - or -
  53.     what is comp.lang.tcl?
  54.     
  55. End of FAQ Index
  56.  
  57. ----------------------------------------------------------------------
  58.  
  59. ------------------------------
  60.  
  61. From: FAQ General information
  62. Subject: -I- Origin of the comp.lang.tcl FAQ information.
  63.  
  64.     The information in this set of FAQs comes from several sources.  The
  65. primary source of information is the group itself - I spend (much too
  66. much) time each month culling through what I feel are some of the best
  67. answers, gathering up new information on ports, etc. and adding it
  68. here.  I also gather new application information and add it as
  69. best I can.  The next most predominant source of information comes from
  70. the authors of the various software packages.  Finally, a small amount
  71. comes from my personal experiences.
  72.  
  73.     The primary location for the commercial use of Tcl FAQ is 
  74. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tcl-commercial-faq.gz>.
  75. The author is gwl@cpu.com (Gerald W. Lester).  This FAQ contains information
  76. either about commercial products which incorporate Tcl as a part of
  77. them or firms which teach about Tcl and Tk in some manner.
  78.  
  79.     The Japanese translation of the comp.lang.tcl FAQ can be
  80. located at
  81. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tcl-faq-j5.3.tar.gz>.
  82. This file contains Japanese EUC-Kanji codes.  Contact
  83. taguchi@fox.aic.co.jp (Taguchi Takeshi - Father of Japanese translation of FAQ)
  84. for more information.
  85.  
  86.     Three new general FAQs are in progress.  These are spin-offs
  87. from this original source document.  The first will contain a bibliography
  88. of published material related to Tcl, and will be managed by
  89. glv@utdallas.edu (Glenn Vanderburg).  (See "tcl-faq/bibliography/part1")
  90. or ftp it at
  91. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tcl-faq-bib.gz>.
  92.  
  93.     The second FAQ will contain the series of Tcl-related questions 
  94. and answers and is managed by joe@morton.rain.com (Joe Moss). 
  95. (See "tcl-faq/tk-Q-and-A/part1") or find it at
  96. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tcl-Q-and-A.p1.gz>.
  97.  
  98.     The third will contain Tk-related questions and answers and 
  99. is managed by tja@cpu.com (Thomas J. Accardo).  You can
  100. (see "tcl-faq/tk.Q-and-A/part1") or find it
  101. at <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tk.Q-and-A.p1.gz>
  102.  
  103.     If you have corrections, enhancements, modifications,
  104. clarifications, suggestions, ideas, new questions, new answers to
  105. questions which have never been asked, or something else that I have
  106. not covered above, contact me at lvirden@cas.org.
  107.  
  108. ------------------------------
  109.  
  110. From: FAQ General information
  111. Subject: -II- What is Tcl?  Tk?  Extended Tcl? 
  112.  
  113. o Highlights of Tcl based languages
  114.  
  115.     Tcl and Tk originated with Dr. John Ousterhout (Oh'-stir-hout -
  116. last syllable rhymes with rout, not root) from the University of California,
  117. Berkeley, California.
  118.  
  119.     Tcl (current release version 7.3) stands for ``tool command
  120. language'' and is pronounced ``tickle.'' The author's home ftp site for
  121. the Tcl source code is <URL:ftp://ftp.cs.berkeley.edu/ucb/tcl/>.
  122. Tcl is actually two things: a language and a library.  First, Tcl is a
  123. simple textual language, intended primarily for issuing commands to
  124. interactive programs such as text editors, debuggers, illustrators, and
  125. shells.  It has a simple syntax and is also programmable, so Tcl users
  126. can write command procedures to provide more powerful commands than
  127. those in the built-in set.
  128.  
  129.     Second, Tcl is a library package that can be embedded in
  130. application programs.  The Tcl library consists of a parser for the Tcl
  131. language, routines to implement the Tcl built-in commands, and
  132. procedures that allow each application to extend Tcl with additional
  133. commands specific to that application.  The application program
  134. generates Tcl commands and passes them to the Tcl parser for
  135. execution.  Commands may be generated by reading characters from an
  136. input source, or by associating command strings with elements of the
  137. application's user interface, such as menu entries, buttons, or
  138. keystrokes.  When the Tcl library receives commands it parses them into
  139. component fields and executes built-in commands directly.  For commands
  140. implemented by the application, Tcl calls back to the application to
  141. execute the commands.  In many cases commands will invoke recursive
  142. invocations of the Tcl interpreter by passing in additional strings to
  143. execute (procedures, looping commands, and conditional commands all
  144. work in this way).
  145.  
  146.     An application program gains three advantages by using Tcl for
  147. its command language.  First, Tcl provides a standard syntax:  once
  148. users know Tcl, they will be able to issue commands easily to any
  149. Tcl-based application.  Second, Tcl provides programmability.  All a
  150. Tcl application needs to do is to implement a few application-specific
  151. low-level commands.  Tcl provides many utility commands plus a general
  152. programming interface for building up complex command procedures.  By
  153. using Tcl, applications need not re-implement these features.  Third,
  154. extensions to Tcl, such as the Tk toolkit, provide mechanisms for
  155. communicating between applications by sending Tcl commands back and
  156. forth.  The common Tcl language framework makes it easier for
  157. applications to communicate with one another.  
  158.  
  159.     Note that Tcl was designed with the philosophy that one should
  160. actually use two or more languages when designing large software
  161. systems.  One for manipulating complex internal data structures, or
  162. where performance is key, and another, such as Tcl, for writting
  163. smallish scripts that tie together the C pieces and provide hooks for
  164. others to extend.  For the Tcl scripts, ease of learning, ease of
  165. programming and ease of glue-ing are more important than performance or
  166. facilities for complex data structures and algorithms.  Tcl was
  167. designed to make it easy to drop into a lower language when you come
  168. across tasks that make more sense at a lower level.  In this way,
  169. the basic core functionality can remain small and one need only bring
  170. along pieces that one particular wants or needs.
  171.  
  172.     Tk (current release 3.6) is an extension to Tcl which provides
  173. the programmer with an interface to the X11 windowing system.  Note
  174. that Tk has been successfully compiled under X11 R4, X11 R5, X11 R6,
  175. as well as Sun's NeWS/X11 environments.
  176.  
  177. The author's home ftp site for the Tk source is the directory
  178. <URL:ftp://ftp.cs.berkeley.edu/ucb/tcl/>.
  179. Note that many users will encounter Tk via the ``wish'' command.  Wish
  180. is a simple windowing shell which permits the user to write Tcl
  181. applications in a prototyping environment.  Tk 4.0 is in the works.
  182. It is expected to appear by first quarter 95.  Some of the changes to
  183. expect are:
  184.  
  185. - A major overhaul of text widgets (embedded windows, horizontal
  186.   scrolling, better vertical scrolling, more display options such as
  187.   vertical spacing, margins, justification, and baseline offsets).
  188. - An overhaul of bindings, including the binding tags discussed at
  189.   last year's workshop and  a change in the evaluation mechanism to make
  190.   bindings more composable.
  191. - A few other changes to event handling, including a new "fileevent"
  192.   command (similar to Mark Diekhans' "addinput") and the ability to
  193.   cancel "after" handlers.
  194. - A general-purpose and user-extensible mechanism for images, intended to
  195.   handle things like color icons, full-color images, and video.
  196. - Improvements to colormap and visual handling.
  197. - A solution to the X resource id wrap-around problem that tends to cause
  198.   errors in long-running applications.
  199. - A bunch of improvements to widgets, including justification in entries and
  200.   the ability to have multi-line text in widgets like buttons and labels.
  201.  
  202. Other things which may appear are:
  203.  
  204. - support for Motif keyboard traversal highlight rings and
  205.   completely overhaul the widget bindings to bring them into better Motif
  206.   compliance.  Emacs-like bindings will also be provided for entries and
  207.   texts where they don't conflict with Motif bindings.
  208. - Application embedding (like Sven Delmas' "tksteal" stuff, I think).
  209. - Overhauls of the send command, the selection, and the input focus
  210.   mechanism.
  211.  
  212. Early beta release of Tk 4.0 is expected before fourth quarter 1994.
  213.  
  214.     The future of Tcl and Tk is quite bright.  This year Dr. Ousterhout
  215. announced that he has been employed by Sun Microcomputer, Inc. to do
  216. some further development of Tcl / Tk.  Some of the short term (within the
  217. next 12 months or so) plans that Dr. O has mentioned are:
  218.  
  219.  
  220. - Ports of Tcl and Tk to both the PC and Mac, so scripts written on one
  221.   platform will run on any of the others, presenting their UI in the look
  222.   and feel of the platform on which they run.
  223. - A commercial-quality graphical interface designer like Visual Basic or
  224.   NextStep.
  225. - Dynamic loading of C code in Tcl.
  226. - Incorporating Nathaniel Borenstein's Safe-Tcl back into the Tcl core,
  227.   so that there is a safe mechanism for executing untrusted scripts that
  228.   arrive via the Internet.
  229.  
  230. John has given me permission to add this quote as well:
  231.  
  232. From: ouster@tcl.eng.sun.com (John Ousterhout)
  233. Newsgroups: comp.lang.tcl
  234. Subject: Re: The future of TcL/Tk's Copyright Terms
  235. Date: 31 Aug 1994 20:08:19 GMT
  236. Organization: Sun Microsystems, Inc.
  237. Message-ID: <342nvj$6e9@engnews2.Eng.Sun.COM>
  238.  
  239. > I discussed the status of the Tcl and Tk libraries with people at Sun
  240. > as part of my pre-hire negotiations, and we're in agreement that they
  241. > will remain free and unrestricted just as they have always been.  Future
  242. > enhancements made to Tcl and Tk by my group at Sun, including the ports
  243. > to Macs and PCs, will be made freely available to anyone to use for
  244. > any purpose.  My view, and that of the people I report to at Sun, is
  245. > that it wouldn't work for Sun to try to take Tcl and Tk proprietary
  246. > anyway:  someone (probably me, in a new job) would just pick up the
  247. > last free release and start an independent development path.  This
  248. > would be a terrible thing for everyone since it would result in
  249. > incompatible versions.
  250.  
  251. > Of course, Sun does need to make money from the work of my team or else
  252. > they won't be able to continue to support us.  Our current plan is to
  253. > charge for development tools and interesting extensions and applications.
  254. > Balancing the public and the profitable will be an ongoing challenge for
  255. > us, but it is very important both to me and to Sun to keep the support
  256. > of the existing Tcl community.  I imagine this discussion will repeat
  257. > from time to time over the next few years, but I think we can make things
  258. > work out well for everyone.
  259.  
  260.  
  261.     Extended Tcl (tclX) (Version 7.3b) - This is an extended set of
  262. commands for Tcl developed by Karl Lehenbauer and Mark Diekhans.  The
  263. authors' home ftp site for Extended Tcl is ftp.neosoft.com.  Extended
  264. Tcl is oriented towards system programming tasks, with many additional
  265. interfaces to the Unix operating system along with other useful
  266. utilities.
  267.  
  268.     Rush is a Tcl-like extension language announced at the Tcl'94
  269. Workshop.  Its syntax and semantics are very similar to Tcl's, but it
  270. additionally offers an optimizing compiler and a new feature called rules.
  271. Its primary advantage over Tcl is performance within a factor of 100 of C,
  272. whereas a Tcl compiler is unlikely to do better than a factor of 1000 of
  273. C.  Rush is not yet publicly available, though ambitious alpha testers
  274. are encouraged to inquire.  Mail can be sent to either asah@cs.berkeley.edu
  275. or blojo@cs.berkeley.edu.  For more information, see the paper
  276. <URL:ftp://ginsberg.cs.berkeley.edu/pub/asah/papers/rush-tcl94.ps.gz>.
  277.  
  278.  
  279. o General information about Tcl and Tk by glv@utdallas.edu (Glenn Vanderburg)
  280.  
  281. Tcl (Tool command language) is a freely distributable simple,
  282. interpreted language designed to be used as a common extension and
  283. customization language for applications.  It was designed and
  284. implemented by Dr. John Ousterhout in the hope that application
  285. designers could spend more of their time on applications and less on
  286. scripting languages, and in the hope that users could spend less time
  287. learning new scripting languages for each new application.  Many useful
  288. applications, some of them sold commercially, use Tcl as their
  289. scripting language.
  290.  
  291. Tcl is clean and regular, and relatively easy for non-hackers to
  292. learn.  It is command-oriented, and commands added by applications and
  293. users exist on an equal footing with the built-in Tcl commands.  Tcl
  294. has both simple variables and associative arrays (tables), and all
  295. values (including procedure bodies) are represented as strings.
  296. Simple customization scripts (such as preference initialization
  297. scripts) usually look much like novice users expect them to: a series
  298. of simple commands which set options.
  299.  
  300. Tcl is implemented as a C library, which can be embedded in an
  301. application.  The application can add its own commands to the
  302. interpreter (using a clean C interface).  It is distributed under a
  303. license which allows use for any purpose with no royalties.
  304.  
  305. The Tk toolkit is a Tcl extension (a group of new Tcl commands) which
  306. provides a Tcl interface to the X Window System.  Tk is one of the
  307. easiest ways to build a graphical interface to an application, and due
  308. to the interpreted nature of Tcl, Tk-based interfaces tend to be much
  309. more customizable and dynamic than those built with one of the C- or
  310. C++-based toolkits.  Tk implements the Motif look and feel.  A number
  311. of interesting X applications are implemented entirely in Tk, with no
  312. new application-specific commands at all.  Tk also provides a
  313. mechanism by which one application can send Tcl scripts to other
  314. Tk-based applications running on the same display, for easy
  315. cooperation between tools.
  316.  
  317. Tcl and Tk are mature, and quite stable, but they are not static:
  318. Dr. Ousterhout has moved from Berkeley to Sun Microsystems, where his
  319. group is pursuing such projects as a commercial-quality Tk
  320. graphical interface designer, an on-the-fly Tcl compiler, and
  321. Macintosh and Microsoft Windows ports of Tk.  He has said that the
  322. copyright status and licensing provisions of Tcl and Tk will not change.
  323.  
  324.  
  325. As to what is Tcl not - in the context of the discussion in
  326. comp.lang.tcl, it is not related directly to the Think C Library (TCL)
  327. available on the Mac.  Confusingly enough, the language concerned with
  328. here _is_ available on the Mac, and someone in fact may have used Think C
  329. to compile it there.  Just one of those universal 'coincidences' that
  330. set the stage for Vogon interstellar highway construction crews.
  331.  
  332. ------------------------------
  333.  
  334. From: FAQ General information
  335. Subject: -III- Do these packages run on my machine?
  336.  
  337.  
  338. A. Unix
  339.  
  340.     Tcl runs on Sun 3s and 4s running SunOS 4 and SunOS 5 (Solaris
  341. 1.x and 2.x), DECstations running Ultrix, DEC VAXen running Ultrix or
  342. BSD, DEC Alphas running OSF/1, 386s running SCO Unix, Xenix, Bell-Tech,
  343. Silicon Graphics running IRIX, HPs running HP-UX as well as HP Snakes
  344. running OSF/1 and HP-UX.  Intel [34]86 systems running
  345. 386bsd, netbsd, freebsd, BSDI, and Linux have Tcl ported.  Various CPUs
  346. running System V.4 report having ported Tcl.  Tcl also appears to be
  347. running on Sequent Symmetry running Dynix as well as OSF/1.  It also
  348. has been reported to run fine on IBM RS6000 under AIX 3.x as well as
  349. IBM ES/9000 and AIX/ESA.  There were few problems getting it running
  350. under Mt. Xinu Mach.  It also has been ported to Encore 91's running
  351. UMAX V (an 88k based System V with BSD extension Unix).  It also runs
  352. on Apollos running BSD/SYSV.  Tcl runs on a Cray running Unicos.  Folks
  353. have ported Tcl to a Mac (IIfx) running A/UX v3.  Someone ported Tcl to
  354. a Sony NeWS machine running NEWS-OS 4.2.  A port to a Convex 3220 and
  355. 3880 was also reported.
  356.  
  357.     Tk (being based on Tcl) generally requires X11R4 or better as
  358. the only additional software requirement.  It runs on any of the above
  359. Unix systems with that base of software.  It also runs on VMS and
  360. OSF/1.
  361.  
  362.     For information on Tcl/Tk/TclX availability (see "tcl-faq/part4").
  363.  
  364.  
  365. B. MacOS
  366.  
  367.     (See "tcl-faq/part2") for details of a Macintosh Tcl Mailing list.
  368.  
  369.     Ray Johnson <rjohnson@aic.lockheed.com> has a package called
  370. MacTcl.  This is a fairly straight port of Tcl to the Macintosh.  It is
  371. designed to be used as libraries to be embedded into other
  372. applications.  A basic shell is included.  Most Tcl features are
  373. present, including many Unix-like features.  Additional features
  374. include supporting the env variable and sourcing Tcl code from a 
  375. resource.  The current version is available at
  376. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/MacTcl7.3.sea.hqx>.
  377.  
  378.     As of this time, I have no leads on anyone porting Tk to MacOS.
  379. I also have not heard of anyone porting Tcl/Tk to a Apple PowerMac.
  380.  
  381.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  382. for the latest port locations and versions.
  383.  
  384.  
  385. C. INTEL DOS-like systems
  386.  
  387.     Numerous ports to DOS are available.  One unsupported port to
  388. MS-DOS of Tcl and Extended Tcl V6.0a, done by
  389. Karl@NeoSoft.com (Karl Lehenbauer), is available on
  390. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/dostcl.zoo> for binaries and
  391. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/dostcl60.zoo> for source.
  392.  
  393.     A port of Tcl V6.2 to MS-DOS was done by 
  394. johnm@cajal.uoregon.edu (John Martin) and is available via FTP from
  395. <URL:ftp://cajal.uoregon.edu/pub/tcl.dos.port/> and
  396. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tcl62.dos.tar.Z>.
  397.  
  398.     A source code only port of Tcl V6.7 to MS-DOS, done by 
  399. PSPRENG@CIPVAX.BIOLAN.UNI-KOELN.DE (Peter Sprenger), is available from
  400. him, somewhere on wuarchive.wustl.edu
  401. or as
  402. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tcl67dos.zip>.
  403.  
  404.     A port of Tcl, version 7.3, to MS-DOS, done by
  405. tpoind@advtech.uswest.com (Tom Poindexter), is available as
  406. <URL:ftp://harbor.ecn.purdue/edu/pub/tcl/distrib/mstcl73*.zip>.  This
  407. also includes TclX 7.3a and Tk ported to Desqview/X libraries.
  408.  
  409.     A port of Tcl, V6.1 ?, done by unknown, to MS-DOS Windows
  410. V 3.1 ?, is available as binary at
  411. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/w_tclbin.zip> and as source at
  412. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/w_tclsrc.zip>.
  413.  
  414.     A package to take a Tcl source distribution and port it cleanly
  415. to MS-DOS, so that it can be compiled has been written by 
  416. Bob Yennaco (byennaco@east.sun.com).  It is available as
  417. <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tcl2dos.sh.gz>
  418.  
  419.     An MS-DOS Windows DLL instance of Tcl 6.2 was generated by
  420. Ugo Cei <ugo@oliver.sublink.org>.  Contact him for more details.
  421.  
  422.     A Windows DLL was made by ekki@prakinf.tu-ilmenau.de (Ekkehard Beier)
  423. by slightly modifying a DOS 6.2 Tcl port.  There are still problems
  424. with the system/WinExec command.  A very rudimentary Debugger User Interface
  425. using Borland's Classlib is part of the zip-file, too.
  426. The source was used also with BC3.1++/AF on MS W3.1.  You can get a copy from
  427. <URL:ftp://metallica.prakinf.tu-ilmenau.de/pub/DOS/wintcl.zip>
  428. via anonymous ftp.  Unfortunately Ekki doesn't have time currently to
  429. finish the Windows port and user Interface.
  430.  
  431.     haga@sra.co.jp (Toshihiko Haga) and miyata@sra.co.jp (Shigeaki Miyata)
  432. announced twin (tcl/tk for MS-Windows), which does not support exec and
  433. send, but supports a -bitmap for Windows .bmp files.  A few other
  434. modifications or special exceptions are noted.  This package's files
  435. can be found at
  436. <URL:ftp://ftp.sra.co.jp/pub/lang/tcl/{twinesrc,twinebin}.zip> and
  437. <URL:ftp://ftp.sra.co.jp/pub/lang/tcl/{twinesrc,twinebin}.doc>.
  438.  
  439.     Professor Ken K. Kubota <ken@ms.uky.edu> has announced a port
  440. of Tcl 7.3 and Tk3.6a to MS DOS Windows using Borland C++ 4.0.  Fetch
  441. the README files from the ftp sites
  442. <URL:ftp://ftp.ms.uky.edu/pub/tk-win/{tkwinbin,tkwin,fedloc}.zip>
  443. for more information.
  444.  
  445.     Omar Stanford <omar@fcm.missouri.edu> reported in March of 1994
  446. that he had almost completed his port of Tcl 7.3 to MS-Windows 3.1.
  447. He had incorporated extensions for networking (including NetWare),
  448. Windows Sockets, and many Windows API functions.  He also was working on
  449. a facility for dynamically allocating commands to the Tcl environment.
  450. If there are other extensions that one would like to see under Windows 3.1,
  451. or if you are interested in beta testing, drop him a line.
  452.  
  453.     Also, Simon Kenyon <simon@news.itc.icl.ie> of the Information
  454. Technology Centre, Dublin, IRELAND, mentions that they are starting to
  455. port Tk to MS-Windows.  There is a mailing list (see below) for
  456. folk who are interested.
  457.  
  458.     Steve Furr <furr@qnx.com> reports getting Tcl ported to QNX
  459. without a lot of trouble.  He mentions that QNX users who have the
  460. beta X should have gotten a CD-ROM update with Tcl and Tk on the CD.
  461.  
  462.     A port of Tcl 7.3, except for glob or command pipelines, to OS/2 2.x
  463. using C Set++ has been done by wwb@wwa.com (Bud Bach).  As of this date, I
  464. have no leads on anyone porting Tk to any version of OS/2.  There is some
  465. OS/2 X client support kits available for purchase, which might make it
  466. easier to port Tk.
  467.  
  468.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  469. for the latest port locations.
  470.  
  471.  
  472. D. VMS
  473.  
  474.     A port of Tcl 7.3 and Tk 3.6 to VMS was done by Angel Li
  475. <angel@flipper.rsmas.miami.edu>.  The files are at
  476. <URL:ftp://mango.rsmas.miami.edu/pub/VMS-tcl/tcl73-tk36-itcl13.tar.Z>
  477. and were compressed with the Unix compress command.  The pathname may
  478. be subject to change as I have seen notes from Angel Li mentioning that
  479. BLT 1.6 and the photo widget have also been ported.  These were compiled
  480. on an Alpha running OpenVMS T6.1.
  481.  
  482.     A port of Tcl 6.3 onto VMS 5.5 was done by Wolfgang Kechel
  483. <wolfgang@pr-wiesbaden.de> and Till Imanuel Panzschke.  Contact them
  484. directly for assistance.
  485.  
  486.     A port of most of Tcl 6.7 and Tk 3.2 was done by John Kimball
  487. <jkimball@src.honeywell.com> to VMS 5.5.  The files are on
  488. <URL:ftp://src.honeywell.com/pub/tcl67-tk32-on-vms55.tar.Z>.
  489.  
  490.     A port of Tcl 7.0 and Tk 3.3 has being done to VMS on the
  491. VAX and Alpha.  These are available as:
  492. <URL:ftp://src.honeywell.com/pub/vms-tcl/tcl70-tk33-on-vms55.tar.Z>
  493. or
  494. <URL:ftp://src.honeywell.com/pub/tcl70-tk33-on-vms55.tar.Z>.
  495.  
  496.     Gerald W. Lester (gwlester@cpu.com) says the following _should_ work.
  497. If you installed the POSIX package on VMS (its free), then you should be 
  498. able to configure and make tcl.  To access tcl you would have to do one 
  499. of the following: 1) Use the POSIX shell, or 2) do a "psx tcl".
  500. Tcl scripts would not execute directly from DCL; to execute a script foo.tcl
  501. from DCL you would have to do "psx foo.tcl".
  502. DISCLAIMER: I have not built any version of tcl under VMS POSIX, these
  503. comments are based on other work I've done with VMS POSIX.
  504.  
  505.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  506. for the latest port locations.
  507.  
  508.  
  509. E. AmigaDOS
  510.  
  511.     Karl Lehbauer <karl@sugar.NeoSoft.com> has indicated that
  512. he started a port of Tcl 3.x to the Amiga.  He has a working
  513. version, but is no longer working on it.  His version uses the
  514. Amiga's shared libraries and implements the "send" command.
  515. He wrote a MIDI file loader and player as well.  Contact him for
  516. further details.  
  517.  
  518.     Ty Sarna <tsarna@endicor.com> has ported Tcl 6.x to the Amiga.  
  519. He says:
  520. > I've ported 3.3 and several 6.x versions to the Amiga, and it can be
  521. > done in under and hour if you leave out the "Unix" functionality.
  522. > However, "Unix" functionality includes things like file I/O!
  523.  
  524.     Another Amiga user, colas@opossum.inria.fr (Colas Nahaboo), mentioned
  525. that using Amiga gcc and the PD X server DaggeX and Xlibs that a port of
  526. Tk might be possible.
  527.  
  528.     hnm@hermes.bouw.tno.nl (Marco van der Heiden) has completed a port
  529. to the Amiga, and suggests Amiga developers contact him by email.  
  530.  
  531.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  532. for the latest port locations.
  533.  
  534.  
  535. F. NeXT
  536.  
  537.     Gianmaria Bertanzon <gm@itnsun4.lii.unitn.it> reports:
  538. We are using tk3.2 on NeXT ( Motorola ) under NextStep 3.0 under X.
  539. The compilation was easy. (we do not remember precisely all the steps)
  540.  
  541.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  542. for the latest port locations.
  543.  
  544.  
  545. G. Other
  546.  
  547.     A port to the Apple IIgs and GNO 1.1/GSOS environment is underway.
  548.  
  549.     A beta port of Tcl 7 has been done to VxWorks.
  550.     You can find it at
  551. <URL:ftp://thor.atd.ucar.edu/pub/vx/tclvx7.0.v2.tar.gz>
  552. or a name similar (if updates have occurred).
  553.  
  554.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  555. for the latest port locations.
  556.  
  557.  
  558. ------------------------------
  559.  
  560. From: FAQ General information
  561. Subject: -IV- Other than C, what languages can talk to tcl/tk?
  562.  
  563.  
  564. A. Shell
  565.  
  566.     There are at least two interfaces which are shell-like.  The
  567. first is wish, which is a windowing shell like interface that is a part
  568. of the Tk package.  The second is tcl, a line command interpreter that
  569. is part of the Extended Tcl package.
  570.  
  571. B. C++
  572.  
  573.     There is a package called Objectify which can be used to assist
  574. one in turning C++ classes into Tcl object types.
  575.  
  576.     If you wish to use C++ with Tcl then you must have your main()
  577. in a source file that is compiled with a C++ compiler; this will
  578. ensure that the necessary C++ pre-main initialization code is
  579. executed.
  580.  
  581.     You can call tcl and tk routines (or other C code) routines from C++ 
  582. provided that the function prototypes avoid C++ name mangling by using
  583. the C++ linkage specification :
  584.  
  585.     extern "C"  ... prototype ...
  586.  
  587.     Fortunately, tcl.h and tk.h will provide these specifications when
  588. compiled with a C++ compiler and so you can just use them directly.
  589.  
  590.     You can construct your main using normal tcl and tk routines, or
  591. use tkMain.c and tkAppInit.c with minor modifications. Ken Yap's
  592. patches obtainable from ... 
  593.  
  594.  
  595.     <URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tk3.2forC++.patch>
  596. is a patch that allows tk 3.2 main.c and other extension routines
  597. to be compiled with a C++ compiler.  Thanks to Ken Yap <ken@syd.dit.csiro.au>
  598. for this code.
  599.  
  600.     C++ functions and static class member functions can be used to
  601. create Tcl command using Tcl_CreateCommand in the normal way. 
  602. Non-static member functions cannot be used so simply, Tcl would
  603. have to supply a "this" pointer. 
  604.  
  605.     Check out tcl++.h in Extended Tcl.  Based on an original
  606. implementation by Parag Patel, it defines a Tcl interpreter class by
  607. which Tcl interpreters can be created as objects under C++.
  608.  
  609.     Mark Diekhans and Karl Lehenbauer have used this, in
  610. combination with the handle facility in Extended Tcl, to build Tcl
  611. commands around C++ classes.
  612.  
  613.     The Tcl handle facility provides a way to manage table entries
  614. that can be referenced by a textual handle from Tcl code.  This is
  615. provided for applications that need to create data structures in one
  616. command, return a reference (i.e. pointer) to that particular data
  617. structure and then access that data structure in other commands.  An
  618. example application is file handles.
  619.  
  620.     A handle table was built containing pointers to the instances
  621. of a class that were to be accessed from Tcl, say a class `foo_cl', and
  622. then a "new" command defined that created an instance of that class and
  623. returned a Tcl handle to it.  The handle could then passed among Tcl
  624. commands that accessed each member function.  The handle is in effect
  625. an explicit `this' pointer.
  626.  
  627.     For example:
  628.  
  629.      set obj [foo_cl::new]
  630.      foo_cl::baz $obj "Hello world"
  631.      foo_cl::delete $obj
  632.  
  633. It's not totally object-oriented, but it's still very usable.
  634.  
  635.  
  636. C. Modula-3
  637.  
  638.     Norman Ramsey <elan.uucp!nr> says:
  639.     A long time back, Eric Muller posted a Modula-3 interface to
  640. the C Tcl library.  I wrote down a Modula-3/Tcl interface that used
  641. Modula-3 types rather than C types, and that used objects to build
  642. closures for commands.  I wrote part of the implementation but never
  643. finished it.  I have mailed copies to carroll@udel.edu, who asked the
  644. question, and I will post them if there seems to be general interest.
  645.  
  646.     Also, there is an interface between Tk and Modula-3 that is a part
  647. of the Modula-3 archives on gatekeeper.dec.com, and Tcl-DP and
  648. Modula-3 have been merged.
  649.  
  650.  
  651. D. Eiffel
  652.  
  653.     stephan@cs.tu-berlin.de (Stephan Herrmann) says:
  654.     ... [the tclish package provides] the marriage of two very different
  655. principles by means of combining two programming languages into a
  656. hybrid program architecture.  
  657.  
  658.     There are three classes for the user - tcl interpretor, tk application,
  659. and tk window.  See <URL:ftp://hepunx.rl.ac.uk/pub/eiffel/tclish> for
  660. details.
  661.  
  662.  
  663. E. Ada
  664.  
  665.     dennis@dennis.cs.colorado.edu (Dennis Heimbigner) introduced
  666. an adatcl package which gives Ada programmers access to Tcl interpreters.
  667. See the catalog for details of the package.
  668.  
  669. F. Perl
  670.  
  671.     Two different projects are underway - see comp.lang.perl
  672. for discussions on adding a Tk like interface to Perl version 4 as well
  673. as Perl version 5.  This is more an interface based on Tk ideas
  674. than to actual Tcl code from what I understand.
  675.  
  676. G. Prolog
  677.  
  678.     The package ProTcl is an interface between Prolog and Tcl/Tk.
  679. It works best with ECLiPSe, but the foreign interface of SICStus and Quintus
  680. is also provided. The interface is dynamically loaded into a Prolog process
  681. and it gives access to Tcl commands and to handling Tk events. It is also
  682. possible to call Prolog from Tcl, handle Tk events in Prolog and to
  683. pass Prolog variables back to Tcl. See
  684. <URL:http://www.ecrc.de/eclipse/html/protcl.html> for more details.
  685.  
  686. H. Other
  687.  
  688.     Work at consolidating Python and Tk is underway - discussion
  689. is proceeding in comp.lang.python on this front as the code is primarily
  690. Python.
  691.  
  692.     Some work relating to the Fresco CORBA interpreter has resulted in a
  693. Tcl-based interpreter which interacts with that environment. 
  694.  
  695.     Some work on Tk bindings for the Dylan language are being investigated
  696. as well as Tk bindings for Sather.
  697.  
  698.     Duncan Sinclair <sinclair@dcs.gla.ac.uk> has details of a hack
  699. into wish.c some hooks for a Tk <-> any language system, and has been using 
  700. it for communication with functional languages such as Haskell and Lazy ML.
  701. A paper, plus sample code, is available by ftp from
  702. <URL:ftp://ftp.dcs.gla.ac.uk/pub/glasgow-fp/authors/Duncan_Sinclair/fumx.*>.
  703.  
  704.     The InterLanguage Unification project is a system that promotes
  705. software interoperability via interfaces.  It has the ability to allow
  706. Common Lisp, ANSI C, C++, Modula 3 to interact and plans to add Python,
  707. Tcl, and GNU Emacs-Lisp shortly.
  708.  
  709.     Of course the Wafe application environment is designed to make
  710. it easier to do X like applications from within several languages using
  711. Tk as a basis.
  712.  
  713.     There are several interfaces to allow one to interface with SQL
  714. though some are specific to a database such as Oracle. 
  715.  
  716.     There is an interpretor for Silicon Graphics machines for SGI's
  717. GL language. 
  718.  
  719.     There is an interface to WOOL.
  720.  
  721.     For more details on the above efforts, (see also "tcl-faq/part04").
  722.  
  723.  
  724. ------------------------------
  725.  
  726. From: FAQ General information
  727. Subject: -V- What training material is available?
  728.  
  729.  
  730. A. Training courses, materials, etc.
  731.  
  732. 1. A text book by John K. Ousterhout is available from Addison Wesley.
  733. It's title is _Tcl and the Tk Toolkit_ and has an ISBN of 0-201-63337-X.
  734. The first printing was in April of 1994.  I believe that the third printing
  735. is now available.  The book primarily covers Tcl 7.3 and Tk 3.6.
  736.  
  737. 2. A physical copy of the Tcl / Tk distributed documentation is
  738. available at the Northside Copy Central in Berkeley under the name "TCL" and
  739. is titled "Tcl/Tk Documents".  Northside Copy Central is at 1862 Euclid 
  740. with a phone of (510) 849-9600.  It costs approx. $15-$20 for the book in
  741. a spiral bound, pink cover, clear plastic front and back format.
  742.  
  743. 3. A tutorial by Don Libes is in the works.  Here is a blurb from the author
  744. himself:
  745.  
  746. Title: Exploring Expect
  747. Subtitle: A Tcl-Based Toolkit for Automating Interactive Applications
  748. Publisher: O'Reilly and Associates, Inc
  749. ISBN: 1-56592-089-9
  750. Pages: 575
  751. Expected Date: October-November '94
  752.  
  753. For all of you who thought that the Expect man page was too long and too
  754. terse at the same time, this book provides relief.  "Exploring Expect"
  755. is an introduction and comprehensive tutorial to Expect.  Numerous
  756. examples are provided and explained, demonstrating how to save you time
  757. and money.  Example topics include how to write patterns, do signal
  758. handling, use Expect as a telnetable daemon, and use Expect with Tk and
  759. other Tcl extensions.
  760.  
  761. The book also includes an innovative introduction to Tcl - if you've
  762. had trouble using Tcl before, all of a sudden, it will make a lot more
  763. sense.  And while Exploring Expect concentrates primarily on using
  764. Expect with Tcl, programmers attempting to automate interactive
  765. programs using C, Perl, Python, or any other language will find this
  766. book helpful because many of the concepts underlying Expect-like
  767. programming are common to all languages.
  768.  
  769. 4. Additional books specifically dealing with Tcl are in the process of
  770. being written. For instance, by Brent Welch, _Practical Programming in
  771. TCL and TK_ to be published by Prentice Hall. See the Tcl bibliography
  772. for details of other references.
  773.  
  774. 5. Computerized Processes Unlimited has a combined Tcl/Tclx reference
  775. manual for sale.  They also offer courses on Tcl.
  776. (See also "tcl-commercial-faq") for more information.
  777.  
  778. 6. NeoSoft Communications Services teaches introductory and advanced
  779. Tcl courses on site or at their location in Houston, Texas.
  780. (See also "tcl-commercial-faq") for more information.
  781.  
  782.  
  783. See the Tcl bibliography for more books, magazine and journal articles ,
  784. proceedings papers, and thesises relating to the Tcl family of languages.
  785.  
  786. B.  Time-related seminars, conferences, sessions.
  787.  
  788. 1. There have been, in the past, seminars at Usenix and an MIT X
  789. conference taught by John Ousterhout (and sometimes by others) on Tcl and Tk.
  790. (See also "tcl-faq/part02") for the URL to the slides from the most recent 
  791. of these presentations.
  792.  
  793. 2. An upcoming USENIX symposium will be dealing with Perl, Tcl and other
  794. similar languages.  Here is the information I have to date.
  795.  
  796. Symposium on Very High Level Languages
  797. October 26-28, 1994
  798. El Dorado Hotel
  799. Santa Fe, New Mexico
  800. Program Chair: Tom Christiansen (tchrist@usenix.org)
  801. Extended abstracts due June 30, 1994
  802.  
  803. 3. University of Maryland Baltimore County is offering
  804. CMSC491C - Special Topics in Computer Science - Scripting Languages.
  805. This is an intro to scripting languages with an emphasis on Perl and
  806. Tcl, but also mentioning sed, awk, etc.  Taught by Bob Tarr, Tuesdays
  807. and Thursdays from 5:30-6:45pm.  Call (410) 455-2336 (Continuing
  808. Education Department) to sign up as a special non-degree candidate.
  809. Info provided by finin@cs.umbc.edu (Tim Finin).
  810.  
  811. 4. The UC Berkeley Extension program is offering a 10 week course on
  812. "Developing User Interfaces with X Windows and C++"taught by
  813. Sriram Srinivasan. This course is being conducted on the
  814. UC Berkeley (Berkeley, CA, USA) campus from Sep 15 thru Nov 17, every
  815. Thursday, from 7-10 p.m.  It includes Tcl, Fresco, ET++, as well as
  816. many other UI development choices. For course details, please contact
  817.       Mark Palermo
  818.       Continuing Education in Engg.
  819.       (510)642-4151, course@garnet.berkeley.edu
  820.  
  821. Course EDP number: EDP 308684
  822. Course Fees : $335
  823.  
  824.  
  825.  
  826. ------------------------------
  827.  
  828. From: FAQ General information
  829. Subject: -VI- Where do I report problems, bugs, or enhancements - or -
  830.         What is comp.lang.tcl?
  831.  
  832.     There are two alternatives for reporting bugs and problems.
  833. The first is the USENET news group <URL:news:comp.lang.tcl>, an unmoderated 
  834. USENET newsgroup, created for the discussion of the Tcl programming language
  835. and tools that use some form of Tcl, such as: the Tk toolkit for the X window
  836. system, Extended Tcl, and expect.  Please note that postings of source
  837. code to comp.lang.tcl does not automatically get archived on
  838. harbor.ecn.purdue.edu - if you want your code to be available from the
  839. User Contributions archive you will need to make arrangements with the
  840. folks there to have it added.  See elsewhere in the FAQ for more details on
  841. the harbor archive site.
  842.  
  843.     The second would be to report problems, suggestions, new
  844. ideas, etc. directly to the author.  Email to
  845.  
  846. John.Ousterhout@eng.sun.com (John Ousterhout)
  847.  
  848. will reach the author of Tcl and Tk - to find the email
  849. address of the authors of other Tcl/Tk based programs,
  850. (see "tcl-faq/part4"), and (see "tcl-faq/part5").
  851.  
  852.     One question that comes up fairly often concerning comp.lang.tcl
  853. is why it isn't split.  The newsgroup varies in traffic, but recently
  854. I have seen it as much as 45 messages a day (counting current cross
  855. postings, etc.)  Dr. Ousterhout was the created of the unmoderated
  856. comp.lang.tcl.  Currently, no one has come forward with the time and
  857. resources to run a discussion of how a split could be handled, nor
  858. have any moderators stepped forward to take over moderation of a group
  859. such as comp.lang.tcl.announce for instance.  So to date, such a question
  860. is good for adding to the existing traffic, but that is about all the
  861. farther things go.
  862.  
  863. ------------------------------
  864.  
  865. End of comp.lang.tcl Frequently Asked Questions (1/5)
  866. *****************************************************
  867.