[cfe-dev] Feature/opinion request
Jacob Carlborg
doob at me.com
Sat Oct 13 04:17:05 PDT 2012
On 2012-10-12 18:48, Matthieu Monrocq wrote:
> And I find this annoying. I would have preferred that they decided that
> - (2**(N-1)) be a sentinel value, since anyway it's a loosy value as you
> cannot get its positive counterpart... But a "default" value ? Then it's
> impossible to decide whether it's intentional or not that this default
> is returned.
The philosophy of D is, (memory) safe by default, possible to write some
extra code to get it fast(er).
You can always specify that you don't what a variable to be default
initialized:
int a = void;
--
/Jacob Carlborg
More information about the cfe-dev
mailing list