oh yeah... no pointers... booo...
just a quick follow up... in terms of the compiler... do you know if it inlines functions or not?
I wrote a quick function "pickedPlayerminusOne()" because I was tired of doing "Arithmetic (Interger): Pick Player - 1"
Is this going to give me a lot of problems with a heavy load on calling this function? is it worth taking the extremely long time to inline this function myself all the time?
I *think* it doesn't inline, but I can only guess.
One way or another Galaxy is much faster than, say, JASS2 so even if it doesn't get inlined the loss of performance isn't too big.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
this is a prety basic question, but are variables passed to functions (a few I wrote) by reference? or are they isntanced and passed by value?
They're passed by value. You can't pass by reference because we have no pointers at our disposal.
oh yeah... no pointers... booo... just a quick follow up... in terms of the compiler... do you know if it inlines functions or not? I wrote a quick function "pickedPlayerminusOne()" because I was tired of doing "Arithmetic (Interger): Pick Player - 1" Is this going to give me a lot of problems with a heavy load on calling this function? is it worth taking the extremely long time to inline this function myself all the time?
@Anthius: Go
no, using a function like that too much wont cause lag at all
@Anthius: Go
I *think* it doesn't inline, but I can only guess.
One way or another Galaxy is much faster than, say, JASS2 so even if it doesn't get inlined the loss of performance isn't too big.