Advertisement
Guest User

This will fail in TeenyScript prior to 2.0.0

a guest
Sep 4th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.58 KB | None | 0 0
  1.  
  2. ; This will fail in any version of TeenyScript lesser than 2.0.0
  3. $class_a = Func(Class)
  4.  
  5.     $method_1 = Func()
  6.         MsgBox(0,$this.__cName__, @MethodName)
  7.     EndFunc
  8.  
  9.     $class_b = Func(Class)
  10.  
  11.         $method_1 = Func()
  12.             MsgBox(0,$this.__cName__, @MethodName)
  13.         EndFunc
  14.  
  15.         $method_2 = Func()
  16.             MsgBox(0,$this.__cName__, @MethodName)
  17.         EndFunc
  18.  
  19.  
  20.     EndFunc
  21.  
  22.  
  23.     $method_2 = Func()
  24.         MsgBox(0,$this.__cName__, @MethodName)
  25.     EndFunc
  26.  
  27. EndFunc
  28.  
  29. $main = Func()
  30.  
  31.     $class_a().method_1()
  32.     $class_a().method_2()
  33.     $class_a().class_b().method_1()
  34.     $class_a().class_b().method_2()
  35.  
  36. EndFunc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement