For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2008 > Re: Why doesn't foreach return a value









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Why doesn't foreach return a value
tom.rmadilo

2008-01-31, 7:49 pm

On Jan 31, 11:56 am, Joe English <jengl...@flightlab.com> wrote:
> tom.rmadilo wrote:
>
>
> I just did. Invoking a command returns a 3-tuple of
> (return code, return value, return options). So
> does evaluating a script, and performing a variable
> substitution.
>
>
> OK, if you insist.
>
>
> If you insist on using the above definition, then yes,
> there's all sorts of mysterious voodoo and lots of
> special cases to consider. I don't think that's a terribly
> useful way of looking at it, though, and it's certainly not
> what's actually going on under the hood. But hey, whatever
> floats your boat.


Mysterious voodoo? What is mysterious about a command altering the
point of execution by not returning? Isn't control flow a common
feature of every programming language?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com