Errm so what does "if (object)" and "Assert(object)" do??

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Mar 10 09:43:22 PST 2007


"torhu" <fake at address.dude> wrote in message 
news:estvsu$2pd9$1 at digitalmars.com...
> 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)'.

votes = votes + 1; // add one to votes 




More information about the Digitalmars-d-learn mailing list