Re: Major Bug in Interpreter [Attn: Robert Craig]

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

> > 
> > Example:
> > }}}
<eucode>
> > function recursive_call(integer i)
> >     integer ib, id
> >     stack &= 0
> >     ib = length(stack)
> >     for x = 1 to 4 do
> >         if stack[ib][i] = 0 then
> >             id = recursive_call(i+1)
> >             stack[ib][i] = id
> >         end if
> >     end for
> >     return ib
> > end function
> > </eucode>
{{{

> > 
> > Which to me, that's a waste of a variable space, that Euphoria is now forced
> > to
> > have to allocate, and deallocate everytime the function is ran through.

Is it actually true that such a temporary, local, variable gets into
the executable? One would think that it'd be optimised away?

-- Another Euphoric, since Nov. 18, 2004 --

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

Search



Quick Links

User menu

Not signed in.

Misc Menu