05.09.2010, 15:24
Quote:
To quate : WTF. Really? Read some topics, i even wrote how & is used with keys.. and what it does... and it was recently.
I can teach some usages of them whenever i have time, PM me, for example, i'm totaly sure that binary shift << is tons of times faster than float multiplication (* in pawno) num<<1 =num*2; num<<2 =num*4 num>>1=num/2 num>>2=num/4; (Rounds down always, as actually just loses the byte); |
It's funny how people criticize other people if they don't know it, or don't know it correctly.
Also, pointing out to what ****** said, * is not a float multiplication, but a normal multiplication, that you can do with many values.
Thanks for the examples though, I do see what you mean.
Edit:
@ ******, I am a little confused on 'sleep'.
From the .pdf :
sleep expression
Abort the program, but leave it in a re-startable state. The expression
is optional. If included, the sleep instruction returns the
expression value (plus the expression tag) to the host application.
The significance and purpose of exit codes/tags is implementation
defined; typically, an application uses the sleep instruction to allow
for light-weight multi-tasking of several concurrent pawn programs,
or to implement “latent” functions.