[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_replace finding
- From: Erik Lindroos <gliptic@...>
- Date: Wed, 1 Jul 2009 09:22:17 +0200
On Thu, Jun 25, 2009 at 12:53 PM, Jerome Vuarand <firstname.lastname@example.org>
On the other hand I agree the current behaviour of lua_replace(L,
lua_gettop(L)) is counter-intuitive. IMHO it should either be a no-op
or throw an error.
It should not be a no-op. Functions that result in different stack depths, especially without producing an error, are very annoying.