It IS a string, but a reference to it. Make it 'string& ref' is perhaps clearer but syntactically the same.
/ David Hedbor
Previous text:
2003-04-16 01:13: Subject: Pointers/lvalues
What's wrong with
void method(string &var) {}
?
It looks like the variable &var is declared as a string. I'd prefer "reference(string) var" or "ref(string) var". It impacts less on all the parsers that has to be updated as well.
/ Martin Nilsson (har bott i google)