Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-07-08 17:03:27


----- Original Message -----
From: "Gennadiy Rozental" <rogeeff_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
Sent: Monday, July 08, 2002 5:50 PM
Subject: [boost] Re: Re: Re: Trying to learn build system

> > > What will be the value of following expression:
> > >
> > > [ some-rule $(X) ]
> >
> > Error. You can try this yourself with jam -f-:
>
> Could you explain then when and how to use [] with rules invocation
> For example, what the following ( taken from status/Jamfile) mean:
> [ run libs/bind/bind_test.cpp ]

It means "interpret the first item as the name of a rule to be evaluated".

IOW, try this:

rule rest ( arg * ) { return !$(arg)! }
x = rest a b c ;
y = [ rest a b c ] ;
ECHO x= $(x) ; # x= rest a b c
ECHO y= $(y) ; # y= !a! !b! !c!

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk