把 81 个 .vp 文件的中文 # 注释与三引号文档串改写为简洁英文,每个连续注释块 <=2 行;运行时中文字符串字面量(testcheck.begin/print 等用户可见消息)保持原样。骨架比对 HEAD 与工作区 112 文件漂移 0,全量 77/77 顺序回归通过。
22 lines
649 B
Plaintext
22 lines
649 B
Plaintext
import t
|
|
|
|
|
|
# Cross-module: single trailing default (mirrors write in includes/json/__writer.vp)
|
|
def one(x: int, cap: sizet = 4096) -> sizet:
|
|
return cap
|
|
|
|
|
|
# Cross-module: 4 params, last has a default (same shape as json.write(pool, val, pretty, cap=4096))
|
|
def write(a: int, b: int, pretty: bool, cap: sizet = 4096) -> sizet:
|
|
return cap
|
|
|
|
|
|
# Cross-module: multiple trailing defaults
|
|
def quad(a: int, b: int = 10, c: int = 20, d: int = 30) -> int:
|
|
return a + b * 100 + c * 10000 + d * 1000000
|
|
|
|
|
|
# Cross-module: named / out-of-order args (add shape in wiki 04-functions.md)
|
|
def many(x: int, y: int, z: int = 1) -> int:
|
|
return (x + y) * z
|