[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 29 Nov 2005 07:21:39 -0200
> The point, in case you missed it, was that many C libraries do various
> checking for invalid inputs, and that the degree of "you're on your own"
> is a result of design choices, not the C language.
You're right. But most libraries I've seen do not do any checking, starting
with the C library. Try fopen(NULL,NULL) or free("")...
And, yes, no hand-holding is a design choice in the Lua C API.
--lhf