Gentoo Archives: gentoo-portage-dev

From: Ciaran McCreesh <ciaranm@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] r2522 commit
Date: Thu, 05 Jan 2006 18:34:40
Message-Id: 20060105183310.1196f25d@snowdrop.home
In Reply to: Re: [gentoo-portage-dev] r2522 commit by Ricardo Loureiro
1 On Thu, 5 Jan 2006 18:19:36 +0000 Ricardo Loureiro
2 <rjlouro@×××××××.org> wrote:
3 | > || ( off1? ( blah1 ) off2? ( blah2 ) blah3 ) -> blah3
4 |
5 | Can || with more than 2 elemts exist? I mean, || (blah1 blah2 blah3),
6 | not || ( ( blah1 blah2 ) blah3 ). I thought the || was like a logical
7 | OR and accepted only 2 elements inside of it. Those elements in turn
8 | can be one package, several package and have a use flag conditional.
9 | I'm asking this cause i'm having a hard time putting dep's on a
10 | relational database and if more than 2 elements can exist inside an
11 | OR, gotta think of another way to solve it.
12
13 Sure. There're plenty of cases of more than two options inside a || ( )
14 block. You can also do complex nesting, like || ( ( one || ( two three
15 four ) ) ( five six ) seven? ( || ( eight nine ten ) ) ) .
16
17 --
18 Ciaran McCreesh : Gentoo Developer (King of all Londinium)
19 Mail : ciaranm at gentoo.org
20 Web : http://dev.gentoo.org/~ciaranm

Attachments

File name MIME type
signature.asc application/pgp-signature