mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-04-30 19:09:26 +08:00
The built-in Dynamic_Object::get_attr was always winning dispatch over user-defined [] overrides when a string index was used, because its C++ type signature (Dynamic_Object, const string&) scored numdiffs=0 while ChaiScript-defined functions had higher numdiffs due to undefined type info. The fix deprioritizes generic C++ Dynamic_Object functions when the actual first argument is a specific subtype, and maps named ChaiScript type parameters to Dynamic_Object type_info for correct dispatch scoring. Co-authored-by: leftibot <leftibot@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dispatchkit | ||
| language | ||
| utility | ||
| chaiscript_basic.hpp | ||
| chaiscript_defines.hpp | ||
| chaiscript_stdlib.hpp | ||
| chaiscript_threading.hpp | ||
| chaiscript.hpp | ||