Skip to content

stdlib: fold IntMap probe helpers into methods - #210

Merged
dslsdzc merged 1 commit into
developfrom
intmap-nested-methods
Oct 26, 2026
Merged

dslsdzc merged 1 commit into
developfrom
intmap-nested-methods

Conversation

@dslsdzc

@dslsdzc dslsdzc commented Oct 26, 2026

Copy link
Copy Markdown
Owner

概要

嵌套 &self 方法调用的 backend 缺陷已由 #209 修复;IntMap 不再需要“只调用自由函数”的绕行写法。

  • intMapFindKey / intMapFindSlot 折叠为 IntMap.findKey / IntMap.findSlot。
  • grow / put / get / has / remove 直接调用 self.findKey(...) / self.findSlot(...)。
  • 删除“nested methods fault”注释与自由函数。

行为不变;test_intmap.py 通过,selfhost-tests 全绿。

Nested `&self` calls work after the receiver TYP_REF fix, so the
free-function workaround is no longer needed. findKey/findSlot become
methods; grow/put/get/has/remove call them directly. No behavior change;
test_intmap passes and selfhost-tests stays green.
@dslsdzc
dslsdzc merged commit a9dd036 into develop Oct 26, 2026
4 checks passed
@dslsdzc
dslsdzc deleted the intmap-nested-methods branch October 26, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant