[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug in gsub
- From: "Andrea D'Amore" <adamore@...>
- Date: Sat, 27 Oct 2007 15:09:37 +0200
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 ?