[cfe-dev] Feature/opinion request

Jacob Carlborg doob at me.com
Thu Oct 11 12:44:43 PDT 2012


On 2012-10-11 19:58, Matthieu Monrocq wrote:

> I agree with David though, the problem of uninitialized integrals is
> that they do not have any sentinel values (unlike pointers, by the way,
> for which null initialization never hurts).

In D these are the default values for all types:

http://dlang.org/type.html

D always tries to use a sentinel value if possible. Unfortunately it's 
not for integer types.

-- 
/Jacob Carlborg




More information about the cfe-dev mailing list