Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Returning user-defined types with user-defined functions
#4
no, qm does not support returning references, as well as Func().member syntax. Use the second example. In QM to initialize a reference variable, can be used either variable or pointer at the right side:

TYPE& r=var
same as
TYPE& r=&var

so, a function can return a pointer, and returning reference is not needed (function'tJobArrayElement& actually would be the same as function'tJobArrayElement*).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)