06-11-2006, 08:01 AM
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*).
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*).
