On Wed, Mar 21, 2012 at 09:25:04PM +0100, Andrej Mitrovic wrote:
> On 3/21/12, H. S. Teoh <hst...@quickfur.ath.cx> wrote:
> > whereas if this was supported, the code would simply be:
> >
> >     void inc_frequency(string entry, int xcoor, int ycoor) {
> >             map[entry][x][y]++;
> >     }
> 
> Wait a minute. Are we missing something? This does work in 2.058:
> 
> void inc_frequency(string entry, int x, int y)
> {
>     int[int][int][string] map;
>     map[entry][x][y]++;
> }
> 
> void main() {
>     inc_frequency("bla", 10, 20);
> }
> 
> I'm now totally confused. :x

Sorry, I was thinking in terms of my AA implementation which is done
using a struct with operator overloading. I should've checked what the
behaviour of the current built-in AAs are before posting. :-P


T

-- 
Almost all proofs have bugs, but almost all theorems are true. -- Paul Pedersen

Reply via email to