View Single Post
06-18-16, 12:43 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
did print():format() change?

Doing some random testing on libs, trying to get the major, minor to print and see the values. Boredom~

Anyway, I got nil errors for these, yet LibStub loads the lib properly if you remove the print statements:
Code:
local major = "LibUtilities-1.0"
local minor = "$Revision: 10000 $"
local lib = LibStub:NewLibrary(major, minor)
print("major: %s"):format(major)
print("minor: %s"):format(minor)
print("minor: %d"):format(tonumber(minor))
if not lib then return end