[Ironruby-core] Couple of Questions

John Messerly jomes at microsoft.com
Mon Feb 25 15:02:47 EST 2008

Tomas Restrepo:

> >
> >  We try to be smart about storing it on the object for types that we
> generate, but if it's a .NET object sometimes we have to go through a
> dictionary lookup to find the instance data for a given object.
> Is the object itself the key for that dictionary? (If yes, I'm guessing
> this will affect the lifetime of said objects, right?)

Yup. It's stored in a WeakReference though. See InstanceDataDictionary.cs

- John

More information about the Ironruby-core mailing list