[Starkit] Starkits as DLLs

Gerald W. Lester glester-hmssoftware at cox.net
Wed Jan 12 14:10:36 CET 2005


Jeff Hobbs wrote:

>Gerald W. Lester wrote:
>  
>
>>Back at the Tcl/Tk 2004 conference, Steve Landers mentioned the idea of 
>>StarKits as DLLs,
>>    
>>
>
>FWIW, I posted the necessities to make this work back in April,
>and the Tcl Dev Kit ships with this working for all its supported
>platforms.
>
>  
>
>>entry points would be automatically generated wrappers for Tcl 
>>procedures that are exported (as specified in an Tcl Interface 
>>Definition (.tid) file). The wrappers would convert the 
>>arguments into TclObj and call the Tcl procedure via Tcl_EvalObj.
>>    
>>
>
>I'm not sure that this is necessary.  You are creating a pseudo
>ffidle style setup.  The stardll works where the user just does
>all the usual dlopen/dlsym (as appropriate for platform), and
>then can use Tcl as normal.  You can see code for making this
>work in the SF tclplugin SF Perl Tcl::Tk module sources.
>
>As a tangent, I do think that Tcl should have an extended load
>command that can load libraries and specific functions without
>the limits imposed by Tcl's currently 'load' command.
>  
>
Jeff,

You read it backwards.

I'd like to be able to *write* DLLs in Tcl -- not use prewritten DLLs 
from Tcl.

The DLLs that are written should be look the same, from the caller's 
point of view as those written in C/C++.  In otherwords he should not 
have to do tcl evals to call the tcl procedure.


-- 
+--------------------------------+---------------------------------------+
| Gerald W. Lester               | Email: GLester at hmssoftware.com        |
| Implementation Engineer        | Work: 504-304-6665, FAX: 504-324-6476 |
+--------------------------------+---------------------------------------+
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.equi4.com/pipermail/starkit/attachments/20050112/a4d303d4/attachment.htm


More information about the Starkit mailing list