[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can I get the return values NOT adjusted to zero?
- From: Sam Roberts <sroberts@...>
- Date: Tue, 20 Jun 2006 18:08:12 -0700
On Wed, Jun 21, 2006 at 12:12:41PM +1200, Richard Simes wrote:
> the standard way to do this is:
> >= 5-3
> >function two() return 2 end
> Is that too "special" ?
It looks way better than return, thats for sure!
But wait... looking a lua.c, I see that it appears to be using "=" as a
short hand for "put return at the start of this line".
Ok, so maybe prepending return really is the best way.