As response to your question, you'll have to do something like this:
void foo(array(string) s) {
s[0]=s[0]+"!";
}
void main() {
array(string) a = ({"Hello World"});
foo(a);
write(a[0]+"\n");
}
I've thought about adding pointers to the language - see lyskom
message 10034173 and comment tree. Still think it's a cool idea, but I
don't know when I'll get around actually doing something about it.
/ Martin Stjernholm, Roxen IS
Previous text:
>12527661 2004-11-03 20:00 /1 lines/ Peter Lundqvist (disjunkt)
>Recipients: Pike (-) help
>Comment to 12527655
>Subject: call by reference
>--------------------------------------------------------------------
>I got that ;)
>
>(12527661) /Peter Lundqvist (disjunkt) /----------------------------
>