misleading error message
- Posted by irvm at ellijay.com Jun 20, 2003
- 386 views
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