New hash

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 23 19:23:36 PDT 2012


On Sat, Mar 24, 2012 at 03:15:49AM +0100, Andrej Mitrovic wrote:
> On 3/24/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> > Anyways, this doesn't seem to work:
> >
> > AA!(string,int[]) hash;
> 
> Ok it works now w/ your patch.

You probably want to git pull, 'cos I found 2-3 other places where I
forgot about inout, so many operations on your AA will fail.

Anyway, about .dup... what's the current AA's behaviour? Are
const/immutable data .dup-able? Or should I just static if the whole
thing out unless it doesn't need more insane const hacks?

Someday, we have to revisit this whole const thing and how to make it
work nicely with containers... I found that it is causing >40% of my
troubles with the AA implementation. :-(


T

-- 
LINUX = Lousy Interface for Nefarious Unix Xenophobes.


More information about the Digitalmars-d mailing list