misleading error message

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

constant list = {"A","B","C"}

procedure report()
return list
.....

OK, the above was supposed to be a function, but I typed procedure 
instead. So what was the helpful error message?

test.exu:4
may not change the value of a constant
return list
          ^
Warning: test.exu:4 - statement after return will never be executed

Press Enter...

Who's trying to change the value of the constant, I ask? Not me!
And if that statement after return will never be executed, just 
when _is_ the list going to be changed, anyway :)

Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu