lua-users home
lua-l archive

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


> couldn't find an errata list on the pil2 home page...

There isn't one yet.


> on pg 60
> 
>    function getnext(list, node)
>        return not node and list or node.next
>    end
> 
> shouldn't that be
> 
>    if not node then return list else return node.next end
> 
> to handle the corner case list==nil?

Sure. I guess it is time to create the errata :)

-- Roberto