Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Persistence wiki

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Persistence wiki
  • Date: Sun, 22 Aug 2004 02:31:38 -0700

On Sat, Aug 21, 2004 at 10:49:48AM -0700, Eric Sandall wrote:
> Quoting Vladim?r Marek <vlmarek AT volny.cz>:
> > Because it seems that persistent variable feature are sometimes misused,
> > I wrote short info about them at
> > http://wiki.sourcemage.org/index.php?page=Persistence . Especially if
> > you're writing spells, please take a minute and look there. Thank you :)
> > Ofcourse any comments/suggestions/criticism is welcomed.
>
> Thank you. :) I did a little spelling and grammar cleanup, but I may have
> missed/messed up a few things. ;)
>
> What happens if you try to do a persisten_add or config_query on an already
> existing variable (such as OPTS)? How can we use config_query (or another
> method) to add to OPTS (if OPTS is already considered persistent, can we
> just
> do: OPTS="$OPTS <new options>" and it will be persistent during the cast
> (and
> not saved, otherwise multiple casts would continually add <new options> to
> the
> end ;))?
>
There is a config_query_options which you can use for that. However you
can mess with them as much as you want after persistent_add'ing them
if I understand things right.

Variables marked persistent are saved and then cleared between spells
files (and thus spells).

-Andrew


--
__________________________________________________________________________
|Andrew D. Stitt | astitt at sourcemage.org |
|irc: afrayedknot | afrayedknot at t.armory.com |
|aim: thefrayedknot or iteratorplusplus | |
|Sorcery Team Lead, Porting Team Lead | |
|Grimoire Guru ham/smgl | ftp://t.armory.com |
|Author and Maintainer of Prometheus | |
--------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page