isExist in associate array

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Dec 10 09:50:58 PST 2008


On Wed, Dec 10, 2008 at 12:16 PM, Spacen Jasset
<spacenjasset at yahoo.co.uk> wrote:
> Also useful:
>
> char[] value;
> if ( (value = "test1" in t) ) {
>        writefln(value);
> }
>

Almost; it's char[]* value, since in always returns a Value* type.
(and it would then be writefln(*value))

Aaalso useful:

if(auto value = "test1" in t)
    writefln(*value);


More information about the Digitalmars-d-learn mailing list