Problem that causes error and warning
- Posted by Juergen Luethje <j.lue at gmx.de> Dec 02, 2005
- 445 views
Hello Rob, I stumbled across a tiny issue (Eu 2.5). The following code snippet of course runs fine:
sequence myData, text myData = "ABC" text = "Look at " & myData puts(1, text)
but when the 2nd line is missing, I get the following messages: | C:\temp\test.exw:2 | variable myData has not been assigned a value | --> see ex.err | | Warning: local variable myData in test.exw is never assigned a value So Euphoria reports an error AND a warning for the same problem here. I think this can be confusing especially for beginners. Since an error is more important than a warning, my suggestion is that Euphoria should not show a warning message in cases like this. Regards, Juergen