lvalue - opIndexAssign - Tango
The Anh Tran
trtheanh at gmail.com
Sun Mar 15 11:37:48 PDT 2009
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. :)
More information about the Digitalmars-d-learn
mailing list