bordemstirs
Member
Okay, so I'm in the process of converting
into something more malleable, namely
via
There's no overlap caused by [t,x] because for each allInfo[string] there is only one key in each sub-aggregate.
My problem is, after running into this, I have a whole bunch of [t,x] pairs with the same record data.
I'm guessing that the assignment newInfo[t,x]=p is acting more like a pointer to p than actually moving the data from the record into a new piece of memory; my problem is that I don't know how to avoid that. Clues?
Code:
int[string,string,string,string,string] allInfo;
Code:
record piece{
string name;
string img;
string link;
int r;
};
piece[string,string] newInfo;
Code:
piece p;
foreach t,i,n,l,x in allInfo{
p.name=n;
p.link=l;
p.image=i;
p.r=0;
newInfo[t,x]=p;
}
My problem is, after running into this, I have a whole bunch of [t,x] pairs with the same record data.
I'm guessing that the assignment newInfo[t,x]=p is acting more like a pointer to p than actually moving the data from the record into a new piece of memory; my problem is that I don't know how to avoid that. Clues?