On Tue, 18 Sep 2012 16:56:31 +0200, Mehrdad <wfunct...@hotmail.com> wrote:
On Saturday, 15 September 2012 at 23:28:36 UTC, Walter Bright wrote:
I wouldn't worry about it. I suspect that most C++ programmers think
that references cannot be null.
Yeah, they can't be null _legally_.
Kind of like how in D you can't strip away const _legally_.
But the compiler doesn't complain if you don't obey the rules.
Well, D at least makes you jump through hoops to strip away const,
while C++ assumes that however stupid the thing you seem to be
doing is, you probably intended to be that stupid.
--
Simen