SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function g (a, b, ...) end
  2.  
  3. -- Call             Parameters
  4. g(3, 4, 5, 8)       a=3, b=4, arg={5, 8; n=2}
  5. ---------------------------------------------
  6.  
  7.  
  8. function A ()
  9.     local a = 5
  10.     local b = 8
  11.     local c = 10
  12.     local d
  13.     local e
  14.    
  15.     if X then
  16.         d = 13
  17.         e = 15
  18.     end
  19.  
  20.     g(a,b,c,d,e)
  21.     -- call ; was sind die parameters? ENTWEDER: a=5, a=8, arg={10; n=1} ODER: a=5, a=8, arg={10, nil, nil; n=3}
  22.  
  23. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top