openlang
语言/系统

D

简介

系统语言,有 pure、nothrow 等函数契约,这些保证区分了可恢复的异常和 Error 类失败。

文档

使用这门语言的成员

参与的讨论

3
  1. 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…

    回复 4最近活动 d
  2. 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…

    回复 4最近活动 d
  3. 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…

    回复 3最近活动 dcommon-lisplua

Logo 来源 ↗