Mirage Source
Call command - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Call command (/showthread.php?tid=2257)



Call command - William - 16-10-2008

Why is it better to skip the call command when calling a sub?


Re: Call command - Rezeyu - 16-10-2008

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.


Re: Call command - GIAKEN - 16-10-2008

It makes the code look cleaner. I prefer to not use call.


Re: Call command - William - 16-10-2008

I think there is another reason why call doesnt need to be used than it looks cleaner.


Re: Call command - GIAKEN - 16-10-2008

I'll try out a speed test.


Re: Call command - Dragoons Master - 17-10-2008

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


Re: Call command - grimsk8ter11 - 19-10-2008

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.