Results 1 to 5 of 5

Thread: Speed Question, Calling Functions

  1. #1
    Guest

    Question

    Quick question, is there any differnce in program speed if I use:

    Function "variable1","variable2"
    -or-
    Call Function("variable1","variable2")



  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Exclamation The first one doesn't work...

    The first one doesn't work, the second does.

  3. #3
    Guest
    According to the MS help section on Call Function


    Remarks

    You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded.

    MSDN Library Jan, 2000


    I can't imagine that calling a function with or with out the Call statement would make a speed difference

    Roger

  4. #4
    Guest
    there is absolutely no difference, Why?...
    Because they are both compiled into the same code in the EXE anyway, so it matters not methinks!

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Post

    A function call takes 0.5 µs with an Athlon 600 Thats way too slow for me
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width