Rob: List?

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

HI Rob,

with this formula:
global object i_
function FOUND( object sym, sequence stream)

    if atom( sym) then
         i_ = find( sym, stream)
     else     
         i_ = match( sym, stream)
    end if
    return i_

end function
--- ========

a fast solution is allowed:
while FOUND( ZEROsym, prm) do
        prm[i_] = 0
    end while


I wonder if it could implemented into the EU language a reserved variable 
like « i_ », active inside the "while / end while" and usable for various 
situations into the loop.

What I mean is that, instead of having to set an express routine as above, 
every function, from find( ) or match( ) to get_..(), length(), sin() etc. 
ACTIVATED BY THE WHILE COMMAND should automatically return a value into 
the variable i_ for any scope. Something like what happens with the FOR 
routine, but a bit more sophisticated.

Regards,
Antonio Alessi

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

Search



Quick Links

User menu

Not signed in.

Misc Menu