Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit sublib
- public
- var int factor3
- var int factor2
- var int factor1
- var int factor0
- function forward int getNum ()
- function forward int setNum (int num)
- function forward int cubeFunc (int x)
- private
- var int privateNum = 0
- function int getNum ()
- default privateNum
- end
- function int setNum (int num)
- default privateNum
- privateNum = num
- end
- function int cubeFunc (int x)
- default
- (x + factor3) +
- (x + factor2) +
- (x + factor1) +
- (x + factor0)
- -- {This is where I suddenly remembered that I still haven't implemented multiplication ^^"}
- -- {Pascal braces are for PasteBin, Exl recognozes Lua's hyphen-marked comments}
- end
- factor3 = 10
- factor2 = 20
- factor1 = 30
- factor0 = 40
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement