Comparing pointers with "is"
monarch_dodra
monarchdodra at gmail.com
Tue Aug 28 03:13:26 PDT 2012
On Monday, 27 August 2012 at 16:33:46 UTC, bearophile wrote:
> monarch_dodra:
>
>> Either that, or is it considered "best practice" to use "is"
>> to compare pointers,
>
> For two pointers using "==" or "is" is the same. And I don't
> remember "best practices" about this. If your pointers later
> risk becoming class references, then it's better to use "is".
>
> Bye,
> bearophile
TY for your reply.
More information about the Digitalmars-d-learn
mailing list