26.08.2010, 15:16
Quote:
I see someone's been reading their documentation! That makes me very happy!
If anyone cares, here's a little more explanation as to WHY the forward is required. In PAWN everything has the same type (32 bit cell), however you can treat some variables differently using tags. Floats have the "Float" tag, true and false have the "bool" tag. "Float" starts with a capital so is strong, "bool" doesn't so is weak. Strong tags can only be stored in variables with the right tag, weak tags can be stored in any weak tag variable: pawn Код:
PAWN actually has operator overloading - I bet very few of you knew that! So you can do: pawn Код:
pawn Код:
Now if you look in float.inc you will see a whole load of overloaded operators, including this one: pawn Код:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
I dont even think the pawn language guide went into as much detail as you just did lol (its been a while since i read this part tbh). Thanks for taking the time to explain this .
I knew about overloading operators (I think you're the one who wrote the article on the wiki regarding this actually?), but this my first time hearing about internal/external names (i've seen you use this for "mirroring" unformat to sscanf, but thats really about it), pretty cool stuff.