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

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

Okay, after doing some experimenting, I found what you mean.

You should word the Documentation, and explination more vividly, then what
was originally stated:

In order to recursivly assign something to a sequence, you need to
in-directly assign the value after the recursive call is made.

Example:
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


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.

But anyways, I got it figured out now.  It lends nothing to readability,
just confusion, and making recursive calls to modify sequences utterly
useless.

Mario Steele

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

Search



Quick Links

User menu

Not signed in.

Misc Menu