Re: Tcl C pass by reference
- From: derek.philip@xxxxxxxxx
- Date: 4 Aug 2005 15:37:33 -0700
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
.
- Follow-Ups:
- Re: Tcl C pass by reference
- From: Helmut Giese
- Re: Tcl C pass by reference
- References:
- Tcl C pass by reference
- From: derek . philip
- Re: Tcl C pass by reference
- From: Helmut Giese
- Tcl C pass by reference
- Prev by Date: Re: Tcl C pass by reference
- Next by Date: Re: Expect timeout problem after matching the prompt.
- Previous by thread: Re: Tcl C pass by reference
- Next by thread: Re: Tcl C pass by reference
- Index(es):