1 #!/usr/local/bin/rune -x
3 # Demonstrate the use of lvalue scope. lvalue scope may be applied
4 # to individual procedural arguments or to the return value. It
5 # causes the caller to pass the object by reference instead of by
6 # value, allowing the procedure to modify the contents of the
9 # This feature is most often used when implementing operators that
10 # require lvalues, such as "++" and "&=", but it can be used to
11 # great effect with normal procedures as well.
19 destructor method void shootme()
29 main(int ac, char **av)
35 stdio.stdout->format("abc" "def\n");
36 stdio.stdout->format("%s\n", `xxxyyy"abc"'xyz'\n` "qqq\n");
37 stdio.stdout->format(`"abc" "def\n"` "\n");