Re: which language allows you to change an argument's value?

2007-09-30 Thread Erik Wikström
a reference to object (not C+ > +'s meaning of alias reference) In what way does the C++ reference differ from those in Java, Python, and Ruby in this situation? -- Erik Wikström -- http://mail.python.org/mailman/listinfo/python-list

Re: which language allows you to change an argument's value?

2007-09-30 Thread Erik Wikström
No. A string in C++ is a string, a char array or a pointer to a char is something different. > it is when the > argument n is something like 1 that makes me wonder. Get a good book on whatever language you are interested in (I do not know which it is since you are all over the place) and

Re: which language allows you to change an argument's value?

2007-10-01 Thread Erik Wikström
On 2007-09-30 23:03, Arne Vajhøj wrote: > Erik Wikström wrote: >>> their reference (alias) mechanism. And C, Python, and Ruby probably >>> won't let you do that. What about Java and Perl? >> >> C will let you do it with pointers (it is just a syntactical