Euphoria v2.2Bug

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

Rob,

I noticed this in someone's code, didn't believe it until I tested it out
myself.

procedure foo(integer foo)
end procedure

and

procedure bar()
    integer bar
end procedure


do not generate "attempt to redefine"  errors.  Why is this happening?
Clearly the routine's own name must be in scope within the routine (since
recursive calls work), so how can this be allowable?  By the way, recursive
calls won't work if coded in the examples above, the interpreter assumes the
reference to "foo" or "bar" is the variable.

-- Mike Nelson

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

Search



Quick Links

User menu

Not signed in.

Misc Menu