Importing libraries
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import("myLib")
|
||||
|
||||
dingus func {
|
||||
// println is an inbuilt function, you can also use print
|
||||
println("you got dingused")
|
||||
@@ -16,6 +18,9 @@ dingus func {
|
||||
println(3.14)
|
||||
println("I am a string!")
|
||||
println(true)
|
||||
// access things from a library
|
||||
println(myLib::someConstant)
|
||||
myLib::dingle()
|
||||
}
|
||||
|
||||
// main is the entry point of the program, like many other languages
|
||||
|
||||
Reference in New Issue
Block a user