Re: Very strange problem - Eu bug?? (Eu 2.5)
- Posted by Ricardo M. Forno <rmforno at tutopia.com> Mar 01, 2006
- 666 views
Kat wrote: > > Robert Craig wrote: > > > People are always amazed when this type of thing occurs, > > but believe me, it's not that uncommon. It has happened to me, > > and it has happened to many other people on EUforum over the > > years. If your program is making decisions based on random > > garbage in memory, it can sometimes work with certain garbage, > > and crash or malfunction with other garbage. > > So the interpreter sees whitespace IN THE SOURCE CODE as something it should > translate to .il code as pointers to various undefined garbage?!? And then > attempt > to run it? What part of the Eu syntax is defined as "...and this > lack of keyword controls how whitespace is processed..."? It's not only > whitespace, it's done it to me before with a "--" added to a program to > comment out a trace(1) line. > > > Kat, > one of those who complained about this sort of bug before. Hey, Kat, you forgot the "garbage" part. "Garbage" is what other programs had left in memory. But this "other program" might be the Euphoria interpreter itsekf, which had processed a different data set, because blank lines and comments exist, not withstanding they do not generate code. So, the important lesson is: do not access RAM locations you are not sure what kind of data contain, because you did not explicitly initialize them. Best wishes.