|
Boost-Build : |
From: rick68 (rick68_at_[hidden])
Date: 2008-05-12 14:14:19
Hi Vladimir,
I tested some code in my Jamfile :
========================================================
import errors
;
result = [ modules.call-locally errors.lol->list 1 : 2 : 3 : 4 : 5 : 6 : 7 :
8 : 9 ]
;
ECHO $(result)
;
EXIT ;
========================================================
I got result "1" : "2" : "3" : "4" : "5" : "6" : "7" : "8" .
:)
- Rick
On Tue, May 13, 2008 at 1:53 AM, Vladimir Prus <ghost_at_[hidden]> wrote:
> 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
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
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