lua-users home
lua-l archive

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


>Perhaps some standard means for a library to 'globalise' itself would be
>useful for people who like such things?

function globalise(a)
	local t=_G[a]
	for k,v in t do
		_G[a.."_"..k]=v
	end
end

globalise"SDL"

--lhf