lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>But I can't do things like "print(/sys/servers/time.gettime())"

Can you settle for this intead?
	print("/sys/servers/time".gettime())
If so, it's easy to add "gettable" tag methods for strings.

However, the catch is that this syntax (and more) will be supported in 4.1,
but it's not in 4.0.
For the time begin, you can use
	print(_"/sys/servers/time".gettime())
where
	function _(x) return x end
--lhf