refactor(coro): Coroutine 改 @t.NoVTable,去掉无用 vtable(纯句柄语义)

This commit is contained in:
TermiNexus committed 2026-08-22 01:35:04 +08:00
1 parent 7d147c55e1
commit 58594d4cf7
1 file changed
+4 -2
+4 -2
View File
@@ -3,9 +3,11 @@ from stdint import *
import stdlib
@t.CVTable
@t.NoVTable
class Coroutine:
"""协程帧句柄(M1:__ptr__ 持有 create_<name>() 返回的帧指针)"""
"""协程帧句柄(M1:__ptr__ 持有 create_<name>() 返回的帧指针)。
纯句柄语义:从不实例化/多态分派,编译器全拦截 coro.* 调用;
用户代码句柄统一用 t.CPtr。"""
__ptr__: t.CPtr