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: Paul <dufflebunk AT dufflebunk.homeip.net>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Improved API for query and store config information
  • Date: Mon, 22 Mar 2004 12:18:04 -0500

There is a libapi that should contain all functions that are allowed to
be called in a spell.
I would suggest you save the persistent stuff to different files,
perhaps add a .p suffix?


On Mon, 2004-03-22 at 11:53, Vladimír Marek wrote:
> > > 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
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
--
De mortuis nihil nisi bonum.

Attachment: signature.asc
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.24.

Top of Page