Re: Coming From QBasic
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Jan 17, 2006
- 529 views
Lynn Kilroy wrote: > > How would I know something was declared at the right time in the include > file? I've looked in those files, and the subroutines, AKA procedures, > were in apparently random order. What's more, the code doesn't look as > neat as it could to me. Mebbe I'm just a finiky coder. For example, > in my Graphics.E file, there appears to me some variable definitions > {a def type statement, I think} near the bottom of the file. Is this > a normal procedure? Or is it a sign that the file is corrupted? Rob often has an inconsistent (and, IMHO, messy) coding style, but graphics.e seems pretty straightforward to me. I'm not sure what you mean by 'random order.' In Euphoria, you need to declare a routine or variable before you use it. From looking at the code, it looks like Rob wanted to put all the sound related things near each other. Why you'd want to have sound things in a file called graphics.e is another issue (I suspect that since this is a DOS-only function, it made sense to put it in the only DOS-only standard include file). Matt Lewis