Syntax:
Public Function ReturnsRef() as ByRef String
Dim a As String = "ABCD"
Return a
End Function
Syntax:
Public Function ReturnsRef() as ByRef String
Dim a As String = "ABCD"
Return a
End Function
We already do that for C#, so should be a formality to enable the same for Mercury as well.
tracked as bugs://84162: Mercury: ByRef return values
bugs://84162 got closed with status fixed.