[fpc-devel] Script Language, TCL Update
Johann Glaser
Johann.Glaser at gmx.at
Thu May 5 22:29:05 CEST 2011
Hi!
Am Freitag, den 29.04.2011, 18:42 +0200 schrieb Johann Glaser:
> After that, my second point. Happily, FreePascal comes with a TCL
> package, but this is linked to TCL 8.0, while 8.5 is the current
> version. Did anybody update the unit? Is anybody interested in an
> updated unit? Would you include it to the official FreePascal
> distribution if I send an updated unit?
I investigated the C header files of TCL 8.0 and 8.5 and found them
quite different. Therefore I've created totally new TCL 8.5 header
translations. Please find attached the files.
Additionally I've started a little OOP wrapper for the interpreter. I'm
not quite sure whether it is so helpful to wrap all the functions, so
only a few are there.
The IMHO interesting part is a OOP wrapper to create custom data types
(TCL calls this "object types") for custom commands. It is tested and
provides a very clean interface to make your class type a TCL object
type. Please find attached some examples.
Could interested people please have a look at the sources and give me
feedback and suggestions for improvements? When everything is polished
I'd be happy if it is included in the official FreePascal sources.
Thanks
Hansi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcl-pas.tar.gz
Type: application/x-compressed-tar
Size: 53419 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110505/7aa8a5dd/attachment.bin>
More information about the fpc-devel
mailing list