A Global Singleton is a class of which only one instance exists within a program.

Any attempt to use non-static members of the class involves performing operations on this one instance.




 
struct IAmaSingleton end
 
x = IAmaSingleton()
y = IAmaSingleton()
 
println("x == y is $(x == y) and x === y is $(x === y).")
 