Boost logo

Boost-Build :

Subject: [Boost-build] How to use function invocation result in string without white space?
From: dimak (dvb.kharkov_at_[hidden])
Date: 2012-07-19 04:58:35


Hello guys,

This is a bjam language problem I faced in practice. Hope you could bear me
a hand!

I want for example to declare variable
var = [ some-rule some_param1 : some_param2 ]"bla" ;
the same way I declare it using variable addressing:
other_var = "some text" ;
var = $(other_var)"bla" ;

Execution of bjam expression
var = [ some-rule some_param1 : some_param2 ]"bla" ;
results in the error "syntax error at keyword ;".
Changing this to expression var = [ some-rule some_param1 : some_param2 ]
"bla" ; works without errors but this is not exactly what I want to achieve
- a list of two strings instead of just single string.
Is there a way to overcome this without definition of temporary variables
with :J= modifier?

--
View this message in context: http://boost.2283326.n4.nabble.com/How-to-use-function-invocation-result-in-string-without-white-space-tp4633263.html
Sent from the Boost - Build mailing list archive at Nabble.com.

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