Re: Tcl C pass by reference



Hi Helmut

I was heading in that direction, although at the moment I'm sticking to
returning strings as I know Tcl scripts are good with them. Eventually
when I get enough functionality to demo or do something usefull with
what I have I'll be able to get more time to focus on the correct
approach. At the moment its more of a learning exercise for me, but it
has potential as far as test automation is concerned.

A lot of the test scripts are written by the S/W developers, I know its
bad practice but.., and they tend to think in a C way, thats why I was
trying to make it easier for them to use Tcl. I'm not sure many of them
know enough about Tcl to have used the foreach { var1 var2 } alist
{break} trick, although it seems quite straight forward to me. Its not
a paradigm you see in C as a return from a func.

I quite liked Robs idea as well.

Would there be any benefits of doing the equivalent of upvar at this
level.

Thanks in advance

Derek

.