Boost logo

Boost-Build :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-28 10:53:43


----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Thursday, February 28, 2002 10:33 AM
Subject: Re: [jamboost] Re: [ boost-Tasks-515756 ] Perforce Jam 2.4
integration

> David Abrahams wrote:
> > FYI, I get:
> >
> > cd c:/boost/tools/build/test/
> > c:/boost/tools/build/perforce_2_4_merge/bin.ntx86/jam
> > -fcheck-jam-patches.ja m
> > with x= a b c d e
> > x[--2] == a b c
> > expected a b c d
> > with x= a
> > x[--2] == a
> > expected
>
> Sorry for that... I forgot to commit check-jam-patches.jam, which does not
> include this test. When mergning expand.c I have decided that "--2" is too
> confusing and omitted it? Do we need it, especially as we "-2" means
nothing
> in Perforce Jam, and means "second element from the end" in Boost.Jam?

I don't know if we need it, but it seems a logical analogy to Python
slicing, where x[:-2] does the same thing.

As far as I'm concerned, it would be OK to require it be written x[1--2] if
that's what you're suggesting.

-Dave

 


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