Re: Euphoria Standard Library on UBoard

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

don cole wrote:
> 
> 
> posted by: don cole <doncole at pacbell.net>
> 
> I would like like to see an ON feature similar to basic's.
> 
> Example:
> 
> a=find(something,mystuff)
> 
> on a procedure(wrapup{},closedown{},startup(),lookmore{},etc..)
> 
> Don Cole,
> SF
> 
> 
> 
> 

Can't you do something similar already?
-- untested
integer a

sequence routines routines = {
     routine_id("wrapup"),
     routine_id("closedown"),
     routine_id("startup"),
     routine_id("lookmore")}

call_proc(routines[a], {})

It could probably be made prettier and wrapped up, but...

-- 
==============================
Too many freaks, not enough circuses.
j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu