root [0] .rawInput
Using raw input
root [1] struct S {double a; double b;}; namespace cling { std::string printValue(S* s) { return std::to_string(s->a+s->b) + " is my sum"; } }
root [2] .rawInput
Not using raw input
root [3] S s{17., 42.}
(S &) 59.000000 is my sum
(the .rawInput is needed to allow the struct and namespace to end up on global scope; it won’t be needed in a script.)