assocArray.remove() gives strange error

Mariusz Gliwiński alienballance at gmail.com
Thu Dec 23 21:58:37 PST 2010


When i compile:
<code>type[key2][key1] assocArray1;
assocArray1[key1].remove(key2);</code>

everything is ok, but building
<code>type[key2][key1] assocArray1;
return (assocArray1[key1].remove(key2));</code>

gives
<code>dmd: expression.c:817: void expToCBuffer(OutBuffer*, HdrGenState*, 
Expression*, PREC): Assertion `pr != PREC_zero' failed.</code>

while the book states it should return bool, which typeof() supports

Digital Mars D Compiler v2.049
Copyright (c) 1999-2010 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/2.0/index.html

Sincerely,
Mariusz Gliwiński
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101224/8400402a/attachment.pgp>


More information about the Digitalmars-d mailing list