通常は決して復帰しないプロシージャの戻り型。
説明
例
| 例: never-returns 戻り型の使用 | |
{define-proc {not-odd-error i:int}:never-returns
{error {format "%s is not odd", i}}
}
{define-proc {assert-odd val:int}:int
{return
{if {bit-and val, 1} == 1 then
val
else
{not-odd-error val}
}
}
}
|