Re: Newbie questions about persistence

David-Sarah Hopwood <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
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?

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

_______________________________________________
e-lang mailing list
[email protected]
http://www.eros-os.org/mailman/listinfo/e-lang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.