Consider the xtUML OAL (object action language) snippet below.
name and logo are local string variables.
buffer is a class.
scmp and simple are operations which each return a string.
scmp takes 2 string parameters.
Notice how the return string from simple is being passed as a parameter into the second invocation of scmp.
name = “BridgePoint”; logo = “xtUML”;
name = buffer::scmp( s1:”action”, s2:”language” );
logo = buffer::scmp( s1:logo, s2:buffer::simple() );