Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-05-12 13:53:24


On Thursday 08 May 2008 13:23:14 rick68 wrote:
> Hi all.
>
> [BOOST_BUILD_PATH/kernel/modules.jam]:
>
> 70: Given a possibly qualified rule name and arguments, remove
> any
>
> 71: # initial module qualification from the rule and invoke it in
> that
>
> 72: # module. If there is no module qualification, the rule is invoked
> in
>
> 73: # the global
> module.
>
> 74: rule call-locally ( qualified-rule-name args * : *
> )
>
> 75:
> {
>
> 76: local module-rule = [ MATCH (.*)\\.(.*) : $(qualified-rule-name) ]
> ;
>
> 77: local rule-name = $(module-rule[2])
> ;
>
> 78: rule-name ?= $(qualified-rule-name)
> ;
>
> 79: return
> [
>
> 80: call-in
> $(module-rule[1])
>
> 81: : $(rule-name) $(args) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7)
> : $(8) :
> $(9)
>
> 82: ]
> ;
>
> 83: }
>
> In line 81, argument $(9) is unused.

I'm lost -- why is it unused? Nothing prevents calling the 'call-locally' rule with 9
arguments. Can you clarify?

- Volodya


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