Associative array trouble

bearophile bearophileHUGS at lycos.com
Fri Oct 16 22:47:40 PDT 2009


Bill Baxter:

>Or this avoids a double lookup if the symbol is present:<

In LDC both forms (and several other ones, if the usage of the pointer is local, and it doesn't get passed away) get simplified to the same single lookup code :-) (but not in DMD).
So much that you may even think of "in" to return just a boolean.
You can tell I like LDC a lot, it's the best thing happened to D in a lot of time.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list