Re: Newbie questions about persistence
Thomas Leonard <tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Organization | IT Innovation |
| Message-ID | <[email protected]> |
On Mon, 2009-09-14 at 19:18 +0100, David-Sarah Hopwood wrote: > Thomas Leonard wrote: > > OK, I modified ScopeSetup to put a "persistence" object in safeScope (I > > couldn't see a way to do this from E). The main program binds this to an > > object with the brand and sealer, using a resolver in privScope. Is this > > sensible (at least as a work-around)? > > > > There are 48 separate objects in my program that need it, so I'm > > reluctant to start passing it around everywhere. > > Why can't you just define it in an outer scope of your program, so that > it is accessible to all nested scopes? Can I do that while keeping the objects in separate files? -- Dr Thomas Leonard IT Innovation Centre 2 Venture Road Southampton Hampshire SO16 7NP Tel: +44 0 23 8076 0834 Fax: +44 0 23 8076 0833 mailto:tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected] http://www.it-innovation.soton.ac.uk