The new ?? and ??? operators

Janice Caron caron800 at googlemail.com
Tue Sep 25 04:25:12 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;

Gosh, that word-wrapped in an inconvenient place! I meant that GetLong
should return a pointer to long.



More information about the Digitalmars-d mailing list