Errm so what does "if (object)" and "Assert(object)" do??
Derek Parnell
derek at psych.ward
Sat Mar 10 02:58:51 PST 2007
On Sat, 10 Mar 2007 11:05:34 +0100, torhu wrote:
> So assert(obj) is a special case.
>
> I think assert(obj) being the same as assert(obj !is null), and then
> being able to do 'obj.invariant' if you really want to explicitly check
> the invariant would a lot clearer. Or even 'invariant(obj)'.
Yes. That would be a very good idea.
--
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell
More information about the Digitalmars-d-learn
mailing list