Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TCL extension adding C-like capabilities?

5 views
Skip to first unread message

P. Bonham

unread,
Oct 16, 1996, 3:00:00 AM10/16/96
to

I am a member of a small student group in a Comp. Engineering program
which has begun researching the possibility of designing a TCL
extension which provides additional C-like capabilities (such as
support for constants, structures, bit manipulation, and static
variables). We have done some research into the available extensions
to TCL and have yet to find an extension which provides this feature.
If anyone has encountered such an extension we would like to hear from
you as we will then have to come up with another project idea. In the
event that this idea has yet to be tackled we would appreciate hearing
from anyone that has additional features they would like to see in
such an extension as well as any leads to TCL resources which would
prove to be useful in such a project.


pal...@limestone.kosone.com


Jeffrey Hobbs

unread,
Oct 16, 1996, 3:00:00 AM10/16/96
to

In article <32652...@apollo.kosone.com>,

P. Bonham <pal...@limestone.kosone.com> wrote:
>which has begun researching the possibility of designing a TCL
>extension which provides additional C-like capabilities (such as
>support for constants, structures, bit manipulation, and static
>variables). We have done some research into the available extensions
>to TCL and have yet to find an extension which provides this feature.

I'd look again *very carefully* at the Tcl FAQ which discusses avaiable
extensions to Tcl:
http://www.teraform.com/~lvirden/tcl-faq/

I've heard of several attempts at such an extension, and others exist
that can cover this kind of thing (like SWIG).

--
Jeffrey Hobbs office: 541.683.7891
Nomad of the 'Net email: jho...@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~jhobbs/

Grant Reaber

unread,
Oct 17, 1996, 3:00:00 AM10/17/96
to
>I am a member of a small student group in a Comp. Engineering program
>which has begun researching the possibility of designing a TCL
>extension which provides additional C-like capabilities (such as
>support for constants, structures, bit manipulation, and static
>variables). We have done some research into the available extensions

Well you might want to look into some of the object-oriented extensions.
IMHO none of the available OO extensions is ideal. But to take your points
individually, you can get constants by using a preprocessor. C doesn't have
constants either. Arrays can be used quite effectively as structures. You
might also look into keyed lists in TclX, or, if you need a specific data
structure, you can implement it in C. For instance BLT provides efficient
"vectors". Bit manipulation is supported. Man expr. Static variables of a
sort should be available with Tcl 8.0, which will support namespaces, which
are better than C's static.

Grant


Robin Becker

unread,
Oct 17, 1996, 3:00:00 AM10/17/96
to

In article <32652...@apollo.kosone.com>, "P. Bonham"
<pal...@limestone.kosone.com> writes

>I am a member of a small student group in a Comp. Engineering program
>which has begun researching the possibility of designing a TCL
>extension which provides additional C-like capabilities (such as
>support for constants, structures, bit manipulation, and static
>variables). We have done some research into the available extensions
>to TCL and have yet to find an extension which provides this feature.
>If anyone has encountered such an extension we would like to hear from
>you as we will then have to come up with another project idea. In the
>event that this idea has yet to be tackled we would appreciate hearing
>from anyone that has additional features they would like to see in
>such an extension as well as any leads to TCL resources which would
>prove to be useful in such a project.
>
>
>pal...@limestone.kosone.com
>
have you checked tclStruct it has structures and could presumably be
extended to allow operations.
--
Robin Becker

0 new messages