Re: problems with Java



ender <astrothayne@xxxxxxxxx> wrote:
The second thing is that you should have more control over how objects
are passed. Although pass by reference is preferable in most cases
there are many instances when pass by value is required, having to
constantly use clone() is not a very efficient, or safe way.

Huh? I never use clone(), and Java doesn't pass by reference, it passes by value.

I'm not sure what you are claiming to accomplish, but I am sure there are Java-idiomatic ways to whatever it is.

-- Lew

.



Relevant Pages

  • Persisting Threaded Tasks in Web Applications with Hibernate?
    ... The only way I can think of to accomplish this is by extending Thread ... put a reference to the object in the Session and call .start ... He kills the session and prevents myThread from ... can I accomplish persisting the myThread object to a ...
    (comp.lang.java.programmer)
  • Re: Replacement for lambda - def as an expression?
    ... > Are you claiming that including a reference to the more humanly readable ... > representation of a function (its source code) somehow detracts from the ...
    (comp.lang.python)
  • Re: Peak Oil
    ... I got news, in the research world, we don't list GOOGLE as a reference when we refute nonsense. ... Sorry Saddle, thats a bullseye for the evidence in my book, if people aren't interested enough in the topic to take it upon themselves to LEARN something, you've heard what they say about the horse and water. ... you and the other guy are making all kinds of illogical statements and Timberwolf is asking you rather nicely what evidence you have to back them up. ... I didn't read through this whole thread, but from what I have, the two of you just press on claiming anyone who doesn't believe you is a fool. ...
    (rec.motorcycles)
  • Re: Object references
    ... > 2) A reference to Object X is passed to function F by value. ... I was using generic English terms and not specific .NET terminology. ... By claiming that objects are passed by reference, ... Changing the value of the pointer doesn't change the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Window and iframe question
    ... You have to store a reference *first*, and use it later (that's a FAQ, I ... I am afraid you will not accomplish anything if you continue depending on ... Is there a user agent where about:Tabs is a valid URI anyway? ...
    (comp.lang.javascript)