Re: creating stand-alone extended tclsh



Will Parsons wrote:
I would like to create a tclsh with application-specific extensions. The
information on creating Tcl extensions that I have been able to obtain by googling seems to be oriented toward creating loadable libraries, which is
not what I want - I need to create a stand-alone tclsh that incorporates
an interface to a static C application library. Any advice on how to go
about this starting from just the Tcl source distribution? (I've looked
at the sampleextension, but it only seems to create an extension library,
not an independent shell.)

There is very little reason to do what you want since loadable extensions became possible, but is is easily doable.

So I'd like to ask why you want to do this?

I'd suggest looking at how TclKits are created and also reading teh appropriate sections of Dr. Ousterhout's book.

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Re: creating stand-alone extended tclsh
    ... information on creating Tcl extensions that I have been able to obtain by ... googling seems to be oriented toward creating loadable libraries, ... There is very little reason to do what you want since loadable extensions ...
    (comp.lang.tcl)
  • creating stand-alone extended tclsh
    ... I would like to create a tclsh with application-specific extensions. ... information on creating Tcl extensions that I have been able to obtain by ... googling seems to be oriented toward creating loadable libraries, ...
    (comp.lang.tcl)
  • Re: Is Forth more focused on detail rather than on concept?
    ... proprietary extensions sucks a lot. ... E.g. the VFX port for MINOS has 1500 ... The next port will have those 1500 lines again, ... far more time implementing libraries outside the kernel than time ...
    (comp.lang.forth)
  • Re: creating stand-alone extended tclsh
    ... information on creating Tcl extensions that I have been able to obtain by ... build all your custom extensions as static libraries. ...
    (comp.lang.tcl)
  • Re: enterprise ruby
    ... and IBM moved to a Java only VM. ... JRuby is somehow less-capable than MRI if it can't use C extensions? ... This applies to Java's GUI libraries (around which several frameworks ...
    (comp.lang.ruby)