lua-users home
lua-l archive

Re: bug in gsub

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


Il giorno 26/ott/07, alle ore 20:36, Roberto Ierusalimschy ha scritto:
Florian Berger just found a bug in gsub. It happens only when it is called
wrongly (without its 3rd argument)
It seems I cannot call it a all:
return string.gsub("hello",'e')
stdin:1: bad argument #3 to 'gsub' (string/function/table expected)
stack traceback:
 [C]: in function 'gsub'
 stdin:1: in main chunk
 [C]:
I'm using
$ lua -v
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
why do I get this behaviour ?

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