#194 Some Q's

thatguydrinksbeer Thu 17 Apr 2008

  1. Can there / will there be support for weak reference types?
  2. Is Obj.hash() really unique among all instances in a process? Or does it follow Java's semantics?

If Obj.hash() really is unique... bravo!

Best, Aaron

brian Thu 17 Apr 2008

  1. Probably need them at some point at the Fan level (you can always dive down into Java or C# if needed right now)
  2. You mean to use Obj.hash as object identity? No, Fan objects are just Java or C# objects which don't add any additional memory overhead so if you don't override Obj.hash, then you get the VM's system identity hashcode.

thatguydrinksbeer Thu 17 Apr 2008

Yeah, I was really talking about System.identityHashcode(), sorry about the poor phrasing, you know me...

Instance identity was always a big deal, and a thorn in my side with xl2.

You know what would be cool? If every instance had or could have a uniquely identifying Uri. Hmmm, I bet that is how you could implement Fan level weak references.

Login or Signup to reply.