[Issue 2347] opIs is missing
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 10 03:23:59 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2347
------- Comment #3 from smjg at iname.com 2008-09-10 05:23 -------
(In reply to comment #2)
> auto ptr = SmartPtr!(MyClass)(new MyClass());
> assert(ptr !is null);
Hang on ... is this a smart _pointer_ or a smart _reference_?
If a pointer, it makes no sense to use is to compare them as pointing to the
same object. And even if it's a reference, what practical use is there in
being able to use is for this? ISTM it would break more generic programming
cases than it would open up.
--
More information about the Digitalmars-d-bugs
mailing list