lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> In my experience malloc does fail and quite often when running on a system
> with constrained memory. I see a lot of code with unchecked mallocs on
> github
> and I don't like it. If it's too much effort to check return values why not
> just wrapper malloc/calloc so OOM failures set a message and exit cleanly?

I would like implement the main function first, and then write the
details about these checks.