[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Feature Suggestion: Make rawset() coerce "nothing" as its 3rd argument to nil, don't error
- From: Sir Pogsalot <sir.pogsalot@...>
- Date: Wed, 18 Jul 2012 13:36:38 -0700
Earlier I was trying to pass around the reference to rawset where it would be called by an iterator with the form: rawset(some_table, k)
some_iter(some_table, rawset) was what that looked like.
Unfortunately it looks like rawset() doesn't like being called with its third argument being "nothing" and not nil. Would it be possible for Lua upstream to have it instead coerce nothing to nil? I know I can simply wrap rawset(), I just think this /should/ be allowed by rawset.
Open to suggestions, someone told me the *error* is there in place someone mistakenly typo'd and meant to call rawset() with a third arg, I disagree that this is appropriate though. ;>