AnsweredAssumed Answered

A function returning linctr cannot be used in place of a linctr variable. Is that correct?

Question asked by abhijit.b on Sep 28, 2016
Latest reply on Sep 28, 2016 by Susanne.Heip

A function returning linctr cannot be used in place of a linctr variable. Is that correct? It does not give any compile error or warning when I use it to invoke a procedure e.g. settype. Please help me understand what is the usage of such a function that returns a linctr?

 

Sample:

 

function testReturnCtr (s: string) : linctr

  returned := carrtest(s)

end-function

 

declarations

  carrrng : set of string

  carrtest : dynamic array(carrrng) of linctr

end-declarations

 

create (carrtest('1'))

settype(testReturnCtr('1'), CT_GEQ)

Outcomes