[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: lua_pushfoo() should return 1
- From: Steven Degutis <sbdegutis@...>
- Date: Tue, 2 Sep 2014 10:53:44 -0500
Fwiw, I like writing "return 1" a lot. It's clear and consise. It
makes it easier for me to read my own code. :)
On Tue, Sep 2, 2014 at 10:40 AM, Rena <hyperhacker@gmail.com> wrote:
> On Mon, Sep 1, 2014 at 8:13 PM, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>>> More accurately, it should return the number of values it pushed,
>>> which for most push functions will always be 1.
>>
>> lua_pushlstring and friends already return the pushed string,
>> and that is useful.
>>
>
> Well, that definitely trumps my idea then. I guess I'll just go back
> to writing "return 1" a lot. ;-)
>
> --
> Sent from my Game Boy.
>