Re: foreach
- Posted by DerekParnell (admin) Jul 24, 2008
- 1133 views
mattlewis said...
And to lump something else in there, what about [optionally] specifying a type for the 'each'?
foreach integer c in my_string do -- ... end foreach
What is the semantics behind that?
Does it mean that it only selects the integers contained in my_string and ignores non-integers? Or does it crash if a non-integer is found?