Importing libraries

This commit is contained in:
2025-10-29 11:45:58 +00:00
parent db963463b0
commit 7e071a1b01
5 changed files with 101 additions and 5 deletions

View File

@@ -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