Extending Tcl

In the previous section, we saw how easy it is to create and access Java objects from Tcl. In this section, we'll look at some more detailed examples, with an emphasis on using Java to extend Tcl. Traditionally, this role has been played by C. Since you are extending Tcl, we'll assume that will use Tcl Blend to add Java into the mix, and examine how you might do so.