Version 2 of Tcl++

Updated 2012-11-13 02:36:12 by RLE

A pure Tcl implementation of incr Tcl.

Available from http://incrtcl.sourceforge.net/ (click on File Distributions).

Useful when you want to distribute an application that requires incr Tcl, and you don't know if it is available on the target system. (Or when you don't want to bother users with requiring them to install any add-on packages beyond Tcl/Tk itself.) Since the "real" incr Tcl is part of all known "Batteries Included" distributions of Tcl/Tk, and is also part of Tclkit, there are few remaining use cases for Tcl++.

There are some subtle discrepancies in functionality that are easily avoided.


FPX likes to use the following code, which

  • attempts to load incr Tcl, or if that fails,
  • loads tcl++, and fakes the presence of incr Tcl.

For that purpose, applications that require it include a copy of tcl++.

 if {[catch {
    package require Itcl
 }]} {
    #
    # If we can't have Itcl, load tcl++
    #

    lappend auto_path [file join [file dirname [info script]] tcl++]
    package require tcl++

    #
    # Fake presence of Itcl
    #

    namespace eval ::itcl {
      namespace import -force ::tcl++::class
      namespace import -force ::tcl++::delete
    }

    package provide Itcl 3.0
 }

Another package that used the tcl++ name in the past:

What: tcl++
Where: From the contact
Description: Tcl based code providing SELF-like prototype-based tcl objects.
Updated:
Contact: mailto:[email protected] (Hansel Wan)


What: Tcl++/Tk++
Where: http://www.amath.washington.edu/%7Elf/software/tcl++/
Description: A package that makes development of extended Tcl/Tk interpreters easier and more pleasant for C++ programmers. It does not patch the core, nor need the Tcl internals. This also includes a small object oriented extension as well as some widgets for Tk.
Further development of Tcl++ is on hold right now.
Updated: 07/1998
Contact: mailto:[email protected] (E. Gkioulekas)