www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - asserting dmd has a problem?

reply Russel Winder via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
Clearly I am missing something very, very simple, but=E2=80=A6

The following code compiles fine using DMD 2.70.2:

	writeln(play_bin);
	assert(play_bin is null);
	assert(play_bin !is null);
	=09
with the output:

	null

on executing the code. I have two comments:

	WTF
	=C2=BFque?


--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Mar 11 2016
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 11 March 2016 at 18:45:12 UTC, Russel Winder wrote:
 The following code compiles fine using DMD 2.70.2:
Using -release? Or catching the AssertError?
Mar 11 2016
parent Russel Winder via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Fri, 2016-03-11 at 18:47 +0000, Adam D. Ruppe via Digitalmars-d-
learn wrote:
 On Friday, 11 March 2016 at 18:45:12 UTC, Russel Winder wrote:
=20
 The following code compiles fine using DMD 2.70.2:
Using -release?
Hummm=E2=80=A6 surreptitious -release I had missed. That deals with that. M= any thanks.
 Or catching the AssertError?
--=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Mar 11 2016