Search:

Type: Posts; User: copeg

Search: Search took 0.11 seconds.

  1. Thread: Operation ==

    by copeg
    Replies
    6
    Views
    2,113

    Re: Operation ==

    The compiler does a pretty darn good job of re-using Strings from memory, say for example within functions and objects (not to the extent that I'd trust == though). You can also 'force caching' using...
  2. Thread: Operation ==

    by copeg
    Replies
    6
    Views
    2,113

    Re: Operation ==

    helloworlds response is much more eloquent than mine



    Basically, if you ever assign an object to another using '=' instead of new, the == will evaluate to true for both assignees. In this...
  3. Thread: Operation ==

    by copeg
    Replies
    6
    Views
    2,113

    Re: Operation ==

    Using the == operator on primitives is fine, but on objects is generally a bad idea if you wish to check content equality....this technique checks that the objects refer to the SAME object (aka the...
Results 1 to 3 of 3