-- Singleton_user.pluto -- require "Singleton" local s = singleton.getInstance() s:print() local t = singleton.getInstance() t:print() print(s == t) -- true, as same object print(instance) -- nil local u = new singleton() -- throws an error u:print() -- not executed