lua-users home
lua-l archive

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


>>>>> "Philippe" == Philippe Verdy <verdyp@gmail.com> writes:

 Philippe> I don't think thank shrinking or keeping the same size may
 Philippe> fail

It doesn't matter what you think. What matters is what the language
standards say, and what they say is that realloc() is permitted to fail
when shrinking a block. (Some realloc implementations never fail in that
case, but many in common use do.)

-- 
Andrew.