tkperl, in the future do you need to link in tk7.3 
Author Message
 tkperl, in the future do you need to link in tk7.3

Quote:
>> Tk is a C library. It has little to do with TCL in terms of language,
>> except where callbacks are concerned. Thus, TKperl will be perl linked
>> with TK, but WITHOUT TCL.

        in the release of tkperl the tk stuff is invoked as C code
too.  BUT, the C code is related to perl invocations and conventions
instead of tcl invocations and conventions.

        for example, if you look at the tkperl5 C code it is very
similar to the tk code in the tk7.3 library with some minor
modifications,  thus why would you even need to link in the tk7.3
library when you can link in the tk C library with perl invocations.

        Right now when you build tkperl you link in tcl, tk, and all
the very similar code to tk but slanted toward perl conventions.

        I am still confused but my point is, why link in the original
tk7.3 library in the future when you can just use the similar C code for
tkperl.

thanks,
michael



Tue, 11 Mar 1997 06:47:52 GMT  
 tkperl, in the future do you need to link in tk7.3

Quote:
>>> Tk is a C library. It has little to do with TCL in terms of
>>> language, except where callbacks are concerned. Thus, TKperl will
>>> be perl linked with TK, but WITHOUT TCL.

Michael> in the release of tkperl the tk stuff is invoked as C code
Michael> too.  BUT, the C code is related to perl invocations and
Michael> conventions instead of tcl invocations and conventions.

Michael> for example, if you look at the tkperl5 C code it is very
Michael> similar to the tk code in the tk7.3 library with some minor
Michael> modifications, thus why would you even need to link in the
Michael> tk7.3 library when you can link in the tk C library with perl
Michael> invocations.

Michael> Right now when you build tkperl you link in tcl, tk, and all
Michael> the very similar code to tk but slanted toward perl
Michael> conventions.

Michael> I am still confused but my point is, why link in the original
Michael> tk7.3 library in the future when you can just use the similar
Michael> C code for tkperl.

(quick note, it's tcl7.3 and tk3.6, not tk7.3)

I think both people are a little confused here about what gets linked
in where and why.  What Malcolm has done is taken the "interface"
routines in tk3.6 that talk to tcl and re-written them so that they
talk to perl instead.  He hasn't bothered to rewrite any of the actual
code that draws stuff on the screen, or any of that code.  So that's
why you have to link in the tk3.6 library.

Now if you look at the code a little more closely, you will also
notice that Malcolm hasn't converted over all the routines to perl
yet, for example, the tkpack call is just a wrapper around the tcl
command of the same name.  Since he hasn't ported over the interface
completely, he gets around it by using a small wrapper to the original
interface code.

The goal is, of course, to not have to link in tcl at all, but this
probably won't be for a while, at least not until Perl5 is released
and Malcolm (and others, step right up!) can get around to expanding
tkperl5.

John


 Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
                        Kill your television



Tue, 11 Mar 1997 22:03:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Future of TkPerl?

2. errors linking Tkperl with Perl5 on SunOS 4.1.3_U1

3. tkperl? linking perl with libtk.a

4. Documentation for tkperl? linking scrollbars to listboxes

5. building tkperl (static linking)

6. Tkperl info needed

7. HELP: tkperl script needed

8. In need of TKPerl help

9. Advice on TKPERL needed

10. : help needed compiling tkperl

11. Need help in getting tkperl up and running.....

12. Need help getting tkperl up and running....

 

 
Powered by phpBB® Forum Software