[Seaside] Re: Smalltalk design advice - how to implementgenericbi-directional pointers?

Colin Putney cputney at wiresong.ca
Mon Dec 31 18:15:23 UTC 2007

On Mon, 24 Dec 2007 22:50:00 -0600, itsme213 wrote:
> "Colin Putney" <cputney at wiresong.ca> wrote in message
>> just have projects keep a collection of employees. If at some point you
>> need to get the reverse - projects an employee is involved with, just
>> get all projects and select the ones that reference that employee.
>> Unless you have massive amounts of data, that'll work just fine.
> Where do you start this search?
> - A global e.g. someClass allInstances?
> - Some "ancestor" container object that all descendants store a pointer to?

I'd probably have an object that would serve as the root for all data 
you care about. That might be called Company, but it might be something 
abstract like Database or DataRoot. Then yes, I'd have a class variable 
that provided global access to the sole instance or a collection of 
instances of that class. 

You'd get at it with "Company current" or something similar.


More information about the seaside mailing list