tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

Implement reading HashMap #153

Closed mkpankov closed 7 years ago

mkpankov commented 7 years ago

As it's impossible to Eq and Hash f64, I decided to split AnyLuaValue. I duplicated all variants instead of putting AnyHashableLuaValue inside of AnyLuaValue as that removes nesting, that would occur otherwise when handling AnyHashableLuaValues produced by reading HashMap.

Close #9

tomaka commented 7 years ago

Thanks for the PR.

This is clearly a hack-ish solution, but I guess it's acceptable as a "temporary" work around.