associative arrays

RenatoL rexlen at gmail.com
Sat Jan 7 14:11:51 PST 2012


Very quick question

import std.stdio;
void main()
{
	auto arr1 = ["uno":1, "due":2, "tre":3];
	arr1.remove("xxx");
}

also in this case the compiler does not say anything and the
program goes out silently ... why? Would not it be better if an
exception was raised? After all if i write:

writeln(arr1["xxx"]);

runtime expresses its disappointment...


More information about the Digitalmars-d-learn mailing list