[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: localized errors for allocating new objects
From: M Joonas Pihlaja <jpihlaja () cc ! helsinki ! fi>
Date: 2010-03-29 23:30:54
Message-ID: Pine.OSF.4.61.1003300223450.37833 () sirppi ! helsinki ! fi
[Download RAW message or body]
On Mon, 29 Mar 2010, Drake Wilson wrote:
> The functions whose plain counterparts return pointers (pushlstring,
> newuserdata, newthread) would return NULL on failure; the functions
> whose plain counterparts return void (createtable, pushcclosure) would
> return 1 on success or 0 on failure. Failure would push nothing,
> rather than nil
I'd prefer every such function to use the same kind of error indicator
rather than a mix of pointers and integers. Especially as I'm told
lua_pushstring() does/will accept NULL as a valid argument and pushes
nil then.
Joonas
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic