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: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Improved API for query and store config information
  • Date: Mon, 22 Mar 2004 09:09:00 -0800

Quoting Vladimír Marek <vlmarek AT volny.cz>:
> > > 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

That could be a problem. ;) If we do "c" then we'd have to modify the scripts
twice, once to add persistent_* and again to remove them once all the scripts
are updated, but that's not too big a deal. So "c" may be best.

-sandalle

--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------

Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.24.

Top of Page