lua-users home
lua-l archive

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


On Mon, Jul 4, 2011 at 1:34 PM, Lorenzo Donati
<lorenzodonatibz@interfree.it> wrote:
> On 04/07/2011 22.19, David Manura wrote:
>>
>> On Mon, Jul 4, 2011 at 3:40 PM, Luiz Henrique de Figueiredo
>> <lhf@tecgraf.puc-rio.br>  wrote:
>>>
>>> Lua 5.2.0 (beta-rc5) is now available [...]
>>>        - clarifications between 'deprecated' and 'removed'
>>
>> This way of removing functions might not be ideal:
>
> I totally agree.

I agree, implementing something that doesn't exist, only to report its
non-existence seems confusing.

Checking for existence with an if io.popen is easier, and asserting a
dependency on its existence is easy, too, with

assert(io.popen)

Cheers,
Sam