F# provides a version of “Obj.magic” but it the compiler issues a warning saying it isn’t advisable to use it in F# code. Information about what it does seems a little thin on the ground, but if it lets you get the underlying numerical representation for the tag, I don’t think this would be helpful since there is no way for the programmer to define what the underlying representation is.

By on 5/20/2006 9:53 PM ()

Ocaml has a feature "Obj.magic" that lets you get at the underlying numerical rep for the tag. I presume F# could support this (or something similar) as well.

By on 5/19/2006 9: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