Re: Adding new ItemType to Canvas
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Adding new ItemType to Canvas

From: Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
Date: Tue Sep 20 2005 - 23:12:38 CEST

John Seal wrote:
> Your original message said "hopefully be able to work crossplatform". I
> suppose unix would need a .so instead of a .dll, but what would be the
> right way to distribute them so it "just worked" on both platforms?
> Could you make it a package that loaded the appropriate library?

Although there is no such thing as a cross-platform DLL (it's inherently
coupled to some small number of platforms, typically just one) there is
a Tcl-oriented distribution technology that handles this. By packaging
your DLLs for all your various platforms inside a suitable Starkit, you
end up with a file containing platform-specific code that can be loaded
on many different platforms. This is very cool.

The only (minor) downside is that you need to have a Tcl interpreter
that has starkit support available. Of course, this happens to be true
of both tclkit and the recent activetcl distros... ;-)

Donal (there's more to this story, but someone else can tell it)
Received on Thu Sep 29 14:38:06 2005