简介
系统语言,有 pure、nothrow 等函数契约,这些保证区分了可恢复的异常和 Error 类失败。
使用这门语言的成员
参与的讨论
D's pure lets a function write through its arguments
D's pure is weaker than the word suggests, and I only noticed because an evaluator experiment wanted to cache calls. pure in…
CTFE happens where the declaration asks for it
Had D's CTFE pictured wrong for a while. I assumed that once a function is fit for compile time evaluation, the compiler woul…
Should eval ever fall back to a host global?
eval("rate + 1", env) with rate bound to 3 in env should mean 4. In compile-time mode, in runtime mode, every time. Flip a mu…