Reply To: Returning strings from C functions

homepage Forums BridgePoint/xtUML Usage and Training Returning strings from C functions Reply To: Returning strings from C functions

#2441
cort
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() );

  • This reply was modified 5 years, 10 months ago by cort.
  • This reply was modified 5 years, 10 months ago by cort.