Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-20 05:24:23


Michael Stevens wrote:

>>And indeed, the if-branch is choosen when $(native) is empty. But
>>apparantly bjam ignores the return statement in the if-branch and
>>continues after the if-block and thus still fails because of the empty
>>argument to path.join.
>
> This is correct. See jam_src/Jam.html.
>
> "Rules can return values ... .... Note that 'return' doesn't actually cause a
> return, i.e., is a no-op unless it is the last statement of the last block
> executed within rule body. "
>

Thanks. I remember I read that but did not understand it well. Now I do
however;-)

So how can I exit a function prematurely ? I guess there is no way to do
it and thus need an else-branch.

 


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