Re: will map:put() never fail?

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

Shouldn't map:put() be a function in case it needs to report an error? I don't see anything like "map:get_error()" either...

Or maybe map:put() will never fail?

The only failure mode I could think of would be if you passed an invalid map, which would result in a crash. What sort of error are you expecting?

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu