Re: Falling Speckles Exercise
Michael Bolin writes,
> Here's the corrected source. I've added comments to show where the
> bugs were, and how I fixed them.
> I'm pretty sure that the Causeway error came from the snow falling
> off the bottom line of the screen. I've shown why in the code.
Thanks Michael for fixing fall.ex. You corrected some bugs, but
there is still a bug, even in your improved version.
I added some code to check the 2 poke statements, and I found that
in James' version and in yours there are instances where the program
pokes outside the 64000-byte block of allocated memory. I put an
if-statement around the 2 pokes to make sure that no poke would
be allowed if it was out of bounds. After this, the "Causeway" error
was finally silenced.
Conclusion: the bug was due to poking outside the bounds of allocated
memory. It was not a Causeway or Euphoria bug. Maybe James
or someone can figure out how to completely fix fall.ex.
I have to go to bed!
Regards,
Rob Craig
Rapid Deployment Software
|
Not Categorized, Please Help
|
|