sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Juuso Alasuutari <iuso AT sourcemage.org>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] meta spells
- Date: Sun, 17 Dec 2006 13:23:01 +0200
On Sunday 17 December 2006 10:30, Jaka Kranjc wrote:
> The best I came up with is:
>
> optional_depends foo "" "" "for reason1" &&
> if is_depends_enabled $SPELL foo; then
> optional_depends bar "" "" "for reason1 (you need this one too)"
> fi
>
> So if the user chose not to use the first one, everything is the same and
> if he does, the query tells him everything. Unless worded *really* badly.
You're right, I forgot to mention this approach. But the downsides are
obvious: It adds one (unnecessary) query (IMHO we have enough as it is :)),
and if the user doesn't select the second one then the compile will fail (or
the program will not work). Also no matter how wisely the second query is
worded, it's always going to confuse some users (myself included).
--
Juuso Alasuutari
[[ Source Mage GNU/Linux ]]
Attachment:
pgpvzcc7VayAQ.pgp
Description: PGP signature
-
[SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Andraž 'ruskie' Levstik, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
seth, 12/16/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/17/2006
-
Re: [SM-Discuss] meta spells,
seth, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Juuso Alasuutari, 12/16/2006
-
Re: [SM-Discuss] meta spells,
Jaka Kranjc, 12/17/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/17/2006
-
Re: [SM-Discuss] meta spells,
Andrew Stitt, 12/17/2006
- Re: [SM-Discuss] meta spells, Arwed von Merkatz, 12/20/2006
-
Re: [SM-Discuss] meta spells,
Eric Sandall, 12/21/2006
- Re: [SM-Discuss] meta spells, Juuso Alasuutari, 12/25/2006
-
Re: [SM-Discuss] meta spells,
Andraž 'ruskie' Levstik, 12/16/2006
Archive powered by MHonArc 2.6.24.