I can't think of any way to do this. For instance, the following code won't work:

1
obj.ReferenceEquals(f, f)

. This is because each reference to f can actually generate a new F# closure object behind the scenes. Section 6.9.24 of the spec (Values with Underspecified Object Identity and Type Identity) indicates that this behavior is unspecified, so presumably it could even vary between releases.

By on 11/23/2010 12:40 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper