lua-users home
lua-l archive

Re: A useful useless fact about Lua keywords

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


Try also this:
do
local C={}
for i=0,255 do C[i]=string.char(i); C[C[i]]=i end
function char(s,i) return C[s:byte(i)] end
end
s="Language"
for i=1,10 do print(i,char(s,i)) end

AltStyle によって変換されたページ (->オリジナル) /