The new ?? and ??? operators

Janice Caron caron800 at googlemail.com
Tue Sep 25 04:36:07 PDT 2007


On 9/25/07, Janice Caron <caron800 at googlemail.com> wrote:
> Of course, the /easy/ way to do this is to have GetLong return a
> long *, and then do
>
> long * temp;
> long id = (temp = data.getLong("ID")) ? *temp : 0;

Or chaining lots of tests together

long id = *( get("A") || get("B") || get("C") || get("D") || &default );



More information about the Digitalmars-d mailing list