>No. He is correct. Since an object reference is a pointer, the value of the
>pointer
>is sent to the method. However, that value *still* points to the same
>object!
He's not saying he's not correct. It's just that in Java you deal quite a
lot with
objects, so first stating that _all_ parameters are call by value, and then
(more
or less to the side) saying that that doesn't count for Objects, makes the
previous
_all_ pretty meaningless.
AH
>
>--Olu E.
>
>> -----Original Message-----
>> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
>> Sent: Friday, August 13, 1999 1:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [Way Off-Topic] Re: will this code work?
>>
>> On Fri, 13 Aug 1999, Steve Odendahl wrote:
>>
>> [ ... ]
>> > No theory is necessary. You can look it up.
>> >
>> > "All parameters to methods in Java are "call by value". That is,
>> > values of parameter variables in a method are copies of the values
>> > the invoker specified. ... When the parameter is an object
>> > reference, however, the object reference is what is passed "by
>> > value", not the object itself."
>> >
>> > - Section 2.6.1, The Java Programming Language, Arnold & Gosling,
1996
>> [ ... ]
>>
>> Well, to my mind, if you have to add that big a qualifier about what
>> happens with object parameters, then a statement like "All parameters
>> ... are 'call by value'" is pretty meaningless.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html