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
Mark Janssen

2008-01-30, 7:46 pm

On Jan 30, 7:26 pm, "tom.rmadilo" <tom.rmad...@gmail.com> wrote:
> On Jan 30, 10:09 am, Mark Janssen <mpc.jans...@gmail.com> wrote:
>
>
> Right, the fact that it returns the empty string, or that it has a
> callframe does not change the logical operation of the loop, just the
> implementation. Hopefully someone will present an example of when this
> would be useful to the exclusion of all other possible examples. It
> isn't the lack of potential things to return so much as the need to
> choose one and exclude the others.


I think this would be the big problem when implementing this. What do
you return?
Sponsored Links







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

Copyright 2008 codecomments.com