Files
hakorune/apps/lib/std/operators/add.hako

12 lines
375 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// std/operators/add.hako
// AddOperator — 加算の演算子ボックス開発用観測MVP
// 目的: 加算を明示呼び出しとして観測(返り値は未使用)
static box AddOperator {
// apply(a, b) -> Any
apply(a, b) {
// 実評価採用フラグON時にVMが結果採用。演算子内は再入ガードで安全
return a + b
}
}