RE: shared memory
- Posted by Kat <gertie at PELL.NET> Jul 25, 2002
- 378 views
On 26 Jul 2002, at 12:02, mistertrik at hotmail.com wrote: > > Either way, if Kat is against long elsif statements, it can be structured as > > procedure proc_a() > --stuff > end procedure > > procedure proc_b() > --stuff > end procedure > > procedure proc_c() > --stuff > end procedure > > if (a) then > proc_a() > elsif (b) > proc_b() > else > proc_c() > end if > > :P > > The only time I ever missed goto statements was when I first switched from > basic > to euphoria.... and that was only becuase I didn't know there was such thing > as > an elsif statement. I knew about elsif before i found Eu. I have 240 elsif, and 30 local vars, i don't want to make the vars global so those extra procedures can get to them. In addition,, rather than testing thru a huge stack of elsif, it's faster to know where in the program all the targets are, and goto the contents of the var, like this: -- var can be 001 to 620 procedure numeric(integer var) goto var :001: -- process goto end :001: -- process goto end ..... :620: -- process :end: end procedure -- numeric Kat