Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-07 03:57:45


On Monday 03 April 2006 19:47, David Abrahams wrote:

> > Using ":" as last character of word to indicate something looks pretty
> > confusing to me, because now you have ":" used in two different ways in
> > the same invocation of a rule. Using:
> >
> > lib foo : foo.cpp
> >
> > : self <define>COOL=1
> > : all <define>ENABLE_LOG
> > : users <link>shared:<define>BUILD_DLL=1
> >
> > ;
> >
> > loks more clear to me.
>
> self:
>
> may be potentially confusing, but IMO it is not nearly as confusing as
> writing
>
> self
>
> by itself used as a label describing the list of things that comes
> next.

We used this for project attributes for quite some time, without any
confusion. In fact, users asking to have the same syntax for targets.

> It would be nice if there was another character that didn't lead to
> this confusion.
>
> self:: <define>COOL=1
>
> self<== <define>COOL=1
>
> self<- <define>COOL=1

I think there are too many 'funny' characters in all those cases. I stil
favour:

   lib foo : foo.cpp

   : self <define>COOL=1
   : all <define>ENABLE_LOG
   : users <link>shared:<define>BUILD_DLL=1
   ;

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk