Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Improved API for query and store config information

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Vladimír Marek <vlmarek AT volny.cz>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Improved API for query and store config information
  • Date: Mon, 22 Mar 2004 17:53:03 +0100

> > persistent_load

[ balast ]

> > persistent_save

[ balast ]

> Couldn't Sorcery automatically run those before/after the scripts?

Yes, that is great idea. I have to found exactly where ( = which all
scripts can be run from the spell ). And it will change with the BUILD
split too, I think.

Anywhere described what everything can be called from the spell ?

HOWEVER

The problem is that when you call persistent_save, it overwrites whole
$SPELL_CONFIG. That would broke all spell which are unavare of this new
system, and write to $SPELL_CONFIG directly. Solutions:

a) Leave spells, prite persistent_load & persistent_load in every file
we need

b) Rewrite all spells

c) Do as in a) but when most of spells will be using this method,
reconsider b) :)

I think c) is right

> -sandalle

--
Vladimir Marek




Archive powered by MHonArc 2.6.24.

Top of Page