| Mirage Source http://miragesource.net/forums/ |
|
| Call command http://miragesource.net/forums/viewtopic.php?f=201&t=4566 |
Page 1 of 1 |
| Author: | William [ Thu Oct 16, 2008 9:00 pm ] |
| Post subject: | Call command |
Why is it better to skip the call command when calling a sub? |
|
| Author: | Rezeyu [ Thu Oct 16, 2008 10:05 pm ] |
| Post subject: | Re: Call command |
I didn't think it was, I thought it was just.. something you could do. I dislike it usually, it's harder for me to read organization wise. |
|
| Author: | GIAKEN [ Thu Oct 16, 2008 10:11 pm ] |
| Post subject: | Re: Call command |
It makes the code look cleaner. I prefer to not use call. |
|
| Author: | William [ Thu Oct 16, 2008 10:13 pm ] |
| Post subject: | Re: Call command |
I think there is another reason why call doesnt need to be used than it looks cleaner. |
|
| Author: | GIAKEN [ Thu Oct 16, 2008 11:38 pm ] |
| Post subject: | Re: Call command |
I'll try out a speed test. |
|
| Author: | Lea [ Fri Oct 17, 2008 1:26 am ] |
| Post subject: | Re: Call command |
I doubt there's any difference, but there might be. I tend to use it some places and not in other places. It depends on what the sub I am calling does, and if I think of it as "calling it" or "doing it" |
|
| Author: | Dragoons Master [ Fri Oct 17, 2008 6:23 pm ] |
| Post subject: | Re: Call command |
I always use it. It's just better to look at it, since all other languages use the ( ) to call a function, I hate this thing about vb6. Calling a function w/out ( ) ??? WTH xD |
|
| Author: | grimsk8ter11 [ Sun Oct 19, 2008 3:17 am ] |
| Post subject: | Re: Call command |
If im nto mistaken, subs need Call and functions its optional? EDIT: I was wrong, apparently si compeltely optional for everything Only benefit i see is ease of use, call requires you use () to encase arguments, without ti you just type through, it only really saves you the call command and 2 characters, since you still need to space between sub or func name and the first arg. so its just preference, they come out the same in the compiler end. |
|
| Author: | Lea [ Sun Oct 19, 2008 3:33 am ] |
| Post subject: | Re: Call command |
no call and parentheses needed for functions when it's not the only thing on a line. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|