[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Basic question about modules
- From: Thijs Koerselman <thijskoerselman@...>
- Date: Tue, 5 Oct 2010 13:56:13 +0200
I am trying to brush up on my understanding of modules, but this is so basic I'm almost embarrassed :) Why in the following code is string a nil value? I would expect the string module to be loaded into the module environment and correctly found at the time of the print call.
local require, print = require, print
print(string.format('%s', 'some string'))