From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-06-04 17:08:06
Rene Rivera wrote:
> Jonathan Turkanis wrote:
>> Among other thing, I realized I don't really know how to return a
>> value from a Jam rule.
>> I just discovered that the return statement does not seem to prevent
>> control from continuing past the "if" block to the line marked "...".
>> I really have no idea what's going on here.
> It's simple ;-) "return 1 ;" sets the return value to the strings
> ["1"] (all values Jam are string lists). When the rule finishes, by
> getting to the last statement, the return value is passed back to the
Ugh!!! I thought of this, but found the following at perforce
"return values ;
Within a rule body, the return statement sets the return value
for an invocation of the rule and terminates the rule's execution."
I guess this is wrong/obsolete. Is there an correct/up-to-date Jam language
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