JS Lemming, why do you use that style? Isn't it just more typing? I honestly don't see a reason to do that is you could achieve the same thing without the {}'s.
Code: Select all
void SetLife(int value)
{
life = value;
if(life > maxlife) { life = maxlife; }
}
Code: Select all
void setLife(int value) {
life = value;
if (life>maxlife)
life = maxlife;
}
The dude in the book I'm reading programs kinda like you, JS Lemming. lol