ertaboy356b
Old School Gamer
- Reaction score
- 86
> 3. Built-in Libraries?
The compiler will have built-in libraries such as TimerUtils so we don't have to download it.. We can just call them whenever we want.. The parser will automatically add the libraries whenever a function from that library is called..
> 4. Overloading
The compiler will have built-in libraries such as TimerUtils so we don't have to download it.. We can just call them whenever we want.. The parser will automatically add the libraries whenever a function from that library is called..
> 4. Overloading
Code:
function MyFunc takes integer a, [integer b=3] returns integer
return a + b
endfunction
We can call this as:
call MyFunc(3)
which will return an integer 3 + 3 = 6
or call it like
call MyFunc(5,6)
which will return an integer 5 + 6 = 11