homepage › Forums › BridgePoint/xtUML Usage and Training › Returning strings from C functions › Reply To: Returning strings from C functions
January 2, 2015 at 5:13 pm #2441
Keymaster
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() );