Name returnstringvarparam
Definition returnstringvarparam(s:val(string)):expr(void).
Example foo(s:var(string)):expr(string)=(
newstringvarparam(s);
...
returnstringvarparam(s)
).
Defined in strings.l
Implementation icode
Description Return a local string var parameter as the result of a function. A var parameter returned in this way must not be finalised using endstringvarparam. A var parameter that is not local to the current function (i.e. it would not otherwise need to be finalised at this point) can be returned just by writing it as the last line of the function.
Note In some future version of LARD this function may be called automatically - but don't hold your breath.