www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What is the state of === and !is as of D0.174

reply Pierre Rouleau <prouleau impathnetworks.com> writes:
Hi!
I'v been remotely following D's evolution.
Now that D.0174 no longer allows '===' and '!==' operator 
(http://www.digitalmars.com/d/changelog.html#new0174), what replaces 
'!=='?  Is it '!is' ?  Is '!in' allowed?

BTW, the lexical page (http://www.digitalmars.com/d/lex.html) still 
lists '===' and '!==' in the list of tokens.

Thanks

- P.R.
Nov 18 2006
parent reply Justin C Calvarese <technocrat7 gmail.com> writes:
Pierre Rouleau wrote:
 Hi!
 I'v been remotely following D's evolution.
 Now that D.0174 no longer allows '===' and '!==' operator 
 (http://www.digitalmars.com/d/changelog.html#new0174), what replaces 
 '!=='?  Is it '!is' ?  Is '!in' allowed?
 
 BTW, the lexical page (http://www.digitalmars.com/d/lex.html) still 
 lists '===' and '!==' in the list of tokens.
 
 Thanks
 
 - P.R.
What's New for D 0.126 Jun 7, 2005 === now deprecated, replaced with is !== now deprecated, replaced with !is http://www.digitalmars.com/d/changelog1.html#new0126 -- jcc7
Nov 18 2006
parent reply Pierre Rouleau <prouleau impathnetworks.com> writes:
Justin C Calvarese wrote:

 Pierre Rouleau wrote:
 Now that D.0174 no longer allows '===' and '!==' operator 
 (http://www.digitalmars.com/d/changelog.html#new0174), what replaces 
 '!=='?  Is it '!is' ?  Is '!in' allowed?

 BTW, the lexical page (http://www.digitalmars.com/d/lex.html) still 
 lists '===' and '!==' in the list of tokens.
What's New for D 0.126 Jun 7, 2005 === now deprecated, replaced with is !== now deprecated, replaced with !is http://www.digitalmars.com/d/changelog1.html#new0126
Thanks, should have looked in 'older versions' link... So this also means that '!in' never made it? -- P.R.
Nov 18 2006
parent Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
Pierre Rouleau wrote:
 Justin C Calvarese wrote:
 
 Pierre Rouleau wrote:

 Now that D.0174 no longer allows '===' and '!==' operator 
 (http://www.digitalmars.com/d/changelog.html#new0174), what replaces 
 '!=='?  Is it '!is' ?  Is '!in' allowed?

 BTW, the lexical page (http://www.digitalmars.com/d/lex.html) still 
 lists '===' and '!==' in the list of tokens.
What's New for D 0.126 Jun 7, 2005 === now deprecated, replaced with is !== now deprecated, replaced with !is http://www.digitalmars.com/d/changelog1.html#new0126
Thanks, should have looked in 'older versions' link... So this also means that '!in' never made it? -- P.R.
No, it didn't... but I'm also not sure how it ought to work, or even be strictly neccessary, as the standard behavior of opIn is to return a pointer. Simply checking the result of opIn against null is the same. Yes, yes, so its one more operator... all well. -- Chris Nicholson-Sauls
Nov 18 2006