Re: Weird error

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sun, 12 Jan 1997, John DeHope wrote:
> >
> > if y1>0 and y1<12 and x>0 then a=barrierow[y1][x+1]
>
> An interpreted language has to parse up its source code line by line
> (this is a simplification, but the idea holds). So when the Euphoria
> interpreter gets to this line of your code it begins to parse it up. It
> replaces variable names with their values, for example. Before it
> executes the line of code Euphoria will look for errors. In this case an
> error will happen EVEN THOUGH THAT CODE IS NEVER EXECUTED! There are two
> steps, you see? 1) Interpret... 2) Execute.

nope, it doesn't work that way. My error was a rounding thing in the
indexing.  I was scratching my head cuz the code's been working fine for 2
weeks now, and now I'm getting an error.  I use floating point numbers as
indexes frequently (for fractional moves, or for scaling sprites)

Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp
A Crash Course in Game Design and Production
http://exo.com/~lgp/euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu