0 Members and 1 Guest are viewing this topic.
I like that idea, but not #Define but #def because that fits better, and maybe other symbols that are shorter...
[16:47:34] <+Hot_Dog> wow, it's still not working[16:47:51] <+Hot_Dog> even on hardware[16:48:40] <+Hot_Dog> I just don't know[16:48:55] <+Runer112> what does the source code look like[16:48:59] <+Runer112> for your test program[16:49:19] <+Hot_Dog> .ABC : AsmComp(AXIOM : 9[16:49:30] <+Runer112> umm[16:49:35] <+Runer112> add an ending parenthesis maybe?[16:49:51] <+Hot_Dog> indeed, forgot that[16:49:56] <+Hot_Dog> that was the problem all alone[16:49:59] <+Hot_Dog> *along[16:50:01] <+Runer112> wait[16:50:03] <+Runer112> did that fix it?[16:50:07] <+Hot_Dog> yes it did[16:50:08] <+Runer112> lol[16:50:20] * +Hot_Dog bangs head against wall again[16:50:21] <@DThought> And that is why I think Quigibo should enforce it [16:50:26] <+Runer112> and this is why Axe sorely needs to force parenthesis closing[16:50:36] <+Runer112> so many bugs caused by open parentheses[16:50:38] <@DThought> Ninja'd, Runer.
Another reason for Axe to enforce parentheses:Quote from: OmnomIRC[16:47:34] <+Hot_Dog> wow, it's still not working[16:47:51] <+Hot_Dog> even on hardware[16:48:40] <+Hot_Dog> I just don't know[16:48:55] <+Runer112> what does the source code look like[16:48:59] <+Runer112> for your test program[16:49:19] <+Hot_Dog> .ABC : AsmComp(AXIOM : 9[16:49:30] <+Runer112> umm[16:49:35] <+Runer112> add an ending parenthesis maybe?[16:49:51] <+Hot_Dog> indeed, forgot that[16:49:56] <+Hot_Dog> that was the problem all alone[16:49:59] <+Hot_Dog> *along[16:50:01] <+Runer112> wait[16:50:03] <+Runer112> did that fix it?[16:50:07] <+Hot_Dog> yes it did[16:50:08] <+Runer112> lol[16:50:20] * +Hot_Dog bangs head against wall again[16:50:21] <@DThought> And that is why I think Quigibo should enforce it [16:50:26] <+Runer112> and this is why Axe sorely needs to force parenthesis closing[16:50:36] <+Runer112> so many bugs caused by open parentheses[16:50:38] <@DThought> Ninja'd, Runer.It just adds another thing to remember when debugging sometimes
Question:What exactly happens if I leave a parenthesis open? Obviously, it'll start glitching the program up, but in what ways? What precisely does it do to the code?
In other news, Frey continues kicking unprecedented levels of ass.
I'm trying to figure out what the purpose is behind these constants. Wouldn't it just be the same thing as, say, putting in the number?
Quote from: Freyaday on May 12, 2011, 09:15:54 pmI'm trying to figure out what the purpose is behind these constants. Wouldn't it just be the same thing as, say, putting in the number?Yes, but it's easier if you change something. For instance, let's say you have a piece of code that draws a tilemap to the screen that's 8*12 sprites large. But what if you wanted to add a HUD to the side of the screen and make it 8*10? Then you'd have to find all of those 12s in your code and change them to 10s. Or you could have used the (hopefully) soon to be Axe equivalent of a #define() when you wrote the code in the first place, so all you'd have to do is change the line with the #define() in it from a 12 to a 10 to fix all of those lines of code.