downs wrote:
Take a look at tools.behave_as (for phobos). It only works properly with built-in types though. http://dsource.org/projects/scrapple/browser/trunk/tools/tools/behave_as.d It should let you implement a HashMap that supports += and similar, at least for built-ins.
Many thanks.No offense, but for a beginner like me, those mixin are similar to C macro hacks years ago. :)