torch / tds

Torch C data structures
Other
80 stars 25 forks source link

hash.pairs in the metatable. #3

Closed DavidGrangier closed 8 years ago

DavidGrangier commented 9 years ago

hash.lua:85 defines hash.pairs in the metatable.

This means that h['pairs'] will be true, which is not convenient to check for the presence of the word pair in the hashtable.

fmassa commented 8 years ago

This has been fixed with https://github.com/torch/tds/commit/05ceb9c0260c5019c59efc52a5d47fe8cb137d73 , right ?

andresy commented 8 years ago

yes!