sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- From: Mads Laursen <dossen+sgl AT daimi.au.dk>
- To: sm-grimoire AT lists.ibiblio.org
- Subject: Re: [SM-Grimoire] Spells that edit httpd.conf
- Date: Sat, 11 Jan 2003 00:00:21 +0100
On 10/01/03 17.37, Pierre Abbat wrote:
> I'm writing a spell that adds a line to httpd.conf. Now suppose that there
> are
> two spells, ploni and elmoni, which both add lines to httpd.conf. Neither
> depends on the other. You cast ploni, then cast elmoni, then dispel ploni.
> What happens? What should happen?
IMHO the proper thing to do is first to ask the user whether the lines
should be added. If it is desired the spell should add the line(s),
surounded by comments marking the line(s) as automatically added. On
removal the spell could then check for these coments, and remove
anything in between (one may want to check if the option was chosen
during the cast, for sanity). Perhaps the cast part should also check
for the line(s) to avoid dublicating them.
Does this sound like a reasonable behavior?
/dossen
Attachment:
pgpecjychICKw.pgp
Description: PGP signature
-
[SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Sandall, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Pierre Abbat, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Sergey A. Lipnevich, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Mads Laursen, 01/10/2003
- <Possible follow-up(s)>
- Re: [SM-Grimoire] Spells that edit httpd.conf, Dufflebunk, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Womack, 01/12/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, M.L., 01/13/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Womack, 01/12/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Sergey A. Lipnevich, 01/13/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Sandall, 01/10/2003
Archive powered by MHonArc 2.6.24.