I already need it badly.
Even if the root collection isn't a MagmaSet - the first collection I want to add is. So why doesn't that work?
Also, I've found that changing the root doesn't work. The change doesn't save. So I had to throw away the db and start over.
On Nov 8, 2007, at 6:17 AM, Sebastian Sastre wrote:
...
I want the root to act like a dictionary - so I set it up like this:
| set | set := (MagmaSet equivalenceAttributes: (Array with: #key)). set addIndex: (MaSearchStringIndex attribute: #key). MagmaRepositoryController create: 'magma' root: set.
But Todd wait a minute, you're contradicting yourself. Why you want to put in root aSet if you want it to behave like aDictionary?
Frankly I would use a Btree in the root or even a plain Dictionary like:
MagmaRepositoryController create: 'magma' root: BTree new ...or MagmaRepositoryController create: 'magma' root: Dictionary new
They implements (more efficiently than a set of associations) #at:put: message because is it's nature to do it and in the end you seems to be trying to reivent with the set of associations.
Simple things will allow you to grow. Try not to get involved with complexities until you really need it badly,
cheers !
Sebastian