Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-02-21 03:47:45

Jurko Gospodnetić wrote:

> Hi Alex.
>> Is there any reason why regex.replace arguments are separated by space,
>> not colon ?!
> Just improvising an answer here... :-)
> Possibly because there is no limit on the number of elements in a
> list (i.e. in a single parameter) and you can iterate through all of
> them while the same does not hold for the number of parameters.

Actually, regexp.replace does not allow lists -- just three string.
I think the reason it does not use ":" to separate the argument is purely
historical. For all new code, it's better to use ":" to separate arguments,
even if each argument can only be a single string.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at