1. Re: 3.0 feature request: foreach

Kat wrote:
> 
> On 13 Jul 2005, at 2:24, Al Getz wrote:
> 
> <huge snippage>
> 
> > My vote goes for Case/Switch, if anything.
> > 

<snip>
 
> <pseudo ooeucode>
> 
> function demo(sequence case)
> 
> goto case
> return "0" -- :"case" target not found!
> 
> :"1"
> -- code
> goto eofunct
> 
> :"blah"
> -- code
> return "something"
> 
> :"transformer"
> :"bot"
> :"minsky"
> :"robot"
> :"borg"
> :"Number 5"  
> -- try doing 6 targets at once like that with case!
> return "it's alive!"
> 
> :eofunct
> -- more code if you like
> 
> return ""
> 
> end function
> 
> </pseudo ooeucode>
> 
> So we CAN do this NOW.
> 

Well, nearly.  The almost-released version 1.7.0 of ooeu can do goto
(Kat has it), but it currently crashes if you supply an invalid goto.
That's being fixed before it gets released.  If people are interested,
I could post the code as it is.

Matt Lewis

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu