Re: AA reimplementation (Was: Re: AA: How to lose a class)

2013-05-24 Thread Brad Anderson
On Thursday, 23 May 2013 at 13:40:44 UTC, H. S. Teoh wrote: On Thu, May 23, 2013 at 11:35:36AM +0200, Dicebot wrote: On Thursday, 23 May 2013 at 09:30:51 UTC, David wrote: ... Problem has been mentioned here : http://wiki.dlang.org/AA_Implementation_Issues I looked over this page again

AA: How to lose a class

2013-05-23 Thread David
http://dpaste.dzfl.pl/9172bed3 If mutable keys are allowed in AAs, then why don't they work and why isn't that documentated? The docs imply this should work, but it obviously doesn't. Code: import std.stdio; @trusted nothrow void printHash(hash_t h) { try { writefln(Called hashing

Re: AA: How to lose a class

2013-05-23 Thread Dicebot
On Thursday, 23 May 2013 at 09:30:51 UTC, David wrote: ... Problem has been mentioned here : http://wiki.dlang.org/AA_Implementation_Issues

Re: AA: How to lose a class

2013-05-23 Thread David
Am 23.05.2013 11:35, schrieb Dicebot: On Thursday, 23 May 2013 at 09:30:51 UTC, David wrote: ... Problem has been mentioned here : http://wiki.dlang.org/AA_Implementation_Issues Thanks for the link, but this should be mentioned in the docs, not in (some) wiki: http://dlang.org/hash-map.html

AA reimplementation (Was: Re: AA: How to lose a class)

2013-05-23 Thread H. S. Teoh
On Thu, May 23, 2013 at 11:35:36AM +0200, Dicebot wrote: On Thursday, 23 May 2013 at 09:30:51 UTC, David wrote: ... Problem has been mentioned here : http://wiki.dlang.org/AA_Implementation_Issues I looked over this page again today, and I'm wondering if perhaps instead of balking at the

Re: AA: How to lose a class

2013-05-23 Thread Dicebot
On Thursday, 23 May 2013 at 09:39:48 UTC, David wrote: Thanks for the link, but this should be mentioned in the docs, not in (some) wiki: http://dlang.org/hash-map.html I also think, the compiler shouldn't even allow mutable instances of classes or structs or arrays, basically anything