funPtrToAddr and addrToFunPtr

Simon Marlow simonmar at microsoft.com
Tue Aug 27 05:53:20 EDT 2002


> > Well, we don't like to encourage the use of deprecated APIs, and I
> > had intended to remove it for the next major release (it's been
> > deprecated for well over 12 months).  Do you still need Addr for
> > something?
> 
> Old Greencard interfaces use it.  In fact, I don't think we've added
> Ptr and FunPtr support to the StdDIS.gc files yet so even shiny new
> greencard interfaces will use it
> 
> For now I'm casting the funptr to a ptr and then casting that to addr.

In that case I would just add these to StdDIS.gc.  You already have
ptrToAddr and addrToPtr in there, for GHC <= 5.02.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list