lua-users home
lua-l archive

Re: [PROPOSAL] more luaL_check* in lauxlib.h (for Lua 5.2)

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


HyperHacker <hyperhacker@gmail.com> wrote:
>
> The point about explicitly checking for a table is also something that's
> bugged me a bit in Lua. Dynamically-typed languages like Lua are ideal for
> Duck Typing - don't ask what an object is, just check if it satisfies your
> needs.
Actually, you shouldn't even check if it satisfies your needs. Just use
it.
Tony.
-- 
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Rockall, Malin, Hebrides: South 5 to 7, occasionally gale 8 at first in
Rockall and Malin, veering west or northwest 4 or 5, then backing southwest 5
or 6 later. Rough or very rough. Occasional rain. Moderate or good,
occasionally poor.

AltStyle によって変換されたページ (->オリジナル) /