Skip to Content.
Sympa Menu

sm-discuss - RE: Re: [SM-Discuss] Variable naming for sorcery variables (WAS: random y

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: evraire AT tuwg.com
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: RE: Re: [SM-Discuss] Variable naming for sorcery variables (WAS: random y
  • Date: 17 Sep 2004 16:22:32 -0000

[Sorry if you receive multiple copies of this, my email client screwed me up.]

Hello again,

> Unfortunatly its not that cut and dry. We do everything we possibly can in
> sorcery to have variables be local rather than global,

Right! I guess the nomenclature would really only need to apply to global
variables.


> but configuration
> variables in particular (the ones in /etc/sorcery/config (and friends))
> are not easy to just change on everyone's box (DEBUG is one of them). We
> cant just decide one day to change all those because people would loose
> those settings.

That raises the excellent point of migration. Do we have some sort of
version number in our configuration files? I use these in my work so my
tools can ease migration during upgrades. Based on the version number, the
tools can do special things. For example, if the version number is before
x.y.z, I can say "read in DEBUG, then save out _SORCERY_DEBUG". When I save
the file it will contain the latest version number and thus this won't happen
the next time sorcery is updated. Just a thought, a possible way of handling
migration. I'm open to any ideas others may have of course.


> I could go into great detail on what you can and cant do in a spell,
> but i'll take the safer standpoint of suggesting that if both spells
> and sorcery behave (declare local variables, etc) we wont have a problem.

Agreed, but I'm assuming sorcery and/or spells cannot always declare their
variables local, else this wouldn't be a problem. There must be some cases
when global variables are needed?


> You can put metal in a microwave in some situations but rather than
> trying to explain to everyone advanced electromagnetic radiation,
> they just say "dont do that!". So Im saying "dont do that!"

LOL!!! Love the analogy! :)

Anyway, I'm just throwing out ideas for discussion. Obviously there is no
obligation to go through with any of them, but I thought they were good. :)

Jonathan Evraire
evraire at tuwg.com


-------------------------------------------------------------
Message sent via http://toad-mail.net
Anti-spam notice, this message originated from IP Address: 69.70.196.119
-------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page