Hi

The code below compiles and runs producing 'Not null'.

```
void main()
{
   import std.stdio;

   int Var1;
   int* ptrVar;

   ptrVar = &Var1;

   if (ptrVar == null) {
      writeln("Null");
   } else {
      writeln("Not null");    
   }
}
```

However, should it not fail to compile, as '==' used instead of 'is'?

Best regards

Reply via email to