[e-lang] Newbie questions about persistence
Thomas Leonard
tal at it-innovation.soton.ac.uk
Tue Sep 15 04:19:03 EDT 2009
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 at it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk
More information about the e-lang
mailing list