Boost logo

Boost-Build :

From: Jonathan Biggar (jon_at_[hidden])
Date: 2008-07-26 11:33:39


Vladimir Prus wrote:
> Jonathan Biggar wrote:
>
>> Jurko Gospodnetić wrote:
>>> Hi Jonathan.
>>>
>>>> Is there any particular reason that bjam limits the number of fields
>>>> passed to a rule to 9? I just hit the limit and it makes me unhappy.
>>> Not that I know of. But feel free look into it and suggest a patch, or
>>> at least add a new ticket at: http://zigzag.cs.msu.su/boost.build
>>>
>>> I think Rene is planning on packaging a new Boost Jam release
>>> sometimes after this Boost library release...
>> I looked through the Jam source, and it appears that the only reason is
>> that the code only detects $(1) through $(9) as field references.
>> Extending that shouldn't be too difficult, plus I'll have to change the
>> LOL_MAX parameter from 9 as well.
>
> To what value? Ideal solution might be to switch from fixed size structure
> to a dynamic one, but that's not exactly a one-line, and 9 arguments looks
> like a lot :-)

That's a good question that I'm pondering already. ;) I'll probably
just double it to start with and see what it might take to remove the
limit entirely.

The other annoying thing was when I passed a rule 10 fields, then 10th
one was just ignored with no error. Took a bit of head scratching
before I counted the number of fields and guessed that the number 9 was
meaningful.

-- 
Jon Biggar
Floorboard Software
jon_at_[hidden]
jon_at_[hidden]

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