mandag 24. januar 2011

Errors

I will now tell you and explain some errors that i have wondered about, and after a while figured out:

If you get errors saying: expected ';' before'[' token or something like that, the easiest way to understand theese errors is to take away the two '' because they are just markers to tell you that this are a sign. So if you  translate that error it will be: expected ; before [ token. Often when i write a line of code, the error says at the start of a perfect code: expected ';' before '[' or something like that. And i often think that that new perfect line of code is wrong. But i have checked it 10 billion times and the code is right. So i check the line above. And what do i see? I see  ] without ; at the end. And then everything solves out and i understand. I have been pretty close to punching my mac in the screen when my code doesn`t work, but when i figured this easy error out i got really happy. But that time is over, moving on.

Ingen kommentarer:

Legg inn en kommentar