Re: foreach

new topic     » goto parent     » topic index » view thread      » older message » newer message
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?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu