Humm, I never really found the short list of data types a hinderance for
Tcl. I have always been able to manage with what is there, although I
did write the record package (tcllib) to overcome one obstacle I had,
but I did that more as an excercise really.
If you really are stuck, and want to find some other stuff, then I know
some people have loaded XOTcl into AOLserver, you may want to look into
that. It gives you an OO facility. You may also want to look at TclX,
which has other data types available (most notably, keyed lists).
I really use lists heavily, and with Tcl8.4, list manipulation has
improved quite a bit, so that's good news for me. I also use an array of
lists quite a bit...
I am just curious, can you give an example of something that is giving
you a hard time?
--brett
On Fri, 2003-01-17 at 14:30, Peter M. Jansson wrote:
> (...that work in AOLserver.)
>
> So, I've been writing Tcl for AOLserver since it only ran Tcl 7.4, and you
> only had 3 choices for storing data in Tcl -- scalars, lists and arrays.
> Things like a list of arrays weren't possible; if you wanted to have such
> a thing, you had to fake it. I admit, I've gotten used to being able to
> do such things in Perl, where an array of hashes is an ordinary thing (or
> at least an array of hash references), and I have to say that I find it
> convenient. How do Tcl programmers normally do such things? Do they
> avoid messes like these, handle them in other languages, and provide Tcl
> commands to manipulate them? Do they use one or more Tcl add-ons? (If so,
> which ones work under AOLserver?) Or am I approaching the problem from
> the wrong perspective?
>
> What makes this an AOLserver question, rather than just a Tcl question, is
> that I want to make sure whatever I do would be supported within AOLserver.
> But other than that, it's not really an AOLserver question.
>
> Thanks,
> Pete.
--
Brett Schwarz
brett_schwarz AT yahoo.com