Sven,

I missed this post when you made it a two days ago. If someone hasn't
already asked, does your implementation support short circuit evaluation?

For example:

BasketCount := IfThen(ShoppingList <> nil, ShoppingList.Count, 0);

Where evaluating ShoppingList.Count will cause an exception if ShoppingList
is nil.

Also the reverse should short circuit as well:

BasketCount := IfThen(ShoppingList = nil, 0, ShoppingList.Count);
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to