Re: Foreign.StablePtr: nullPtr & double-free questions.

2013-03-13 Thread Edward Z. Yang
Excerpts from Remi Turk's message of Wed Mar 13 13:09:18 -0700 2013: > Thanks for your quick reply. Could you elaborate on what "a bit of > overhead" means? > As a bit of context, I'm working on a small library for working with > (im)mutable extendable > tuples/records based on Storable and Foreign

Re: Foreign.StablePtr: nullPtr & double-free questions.

2013-03-13 Thread Remi Turk
On Sat, Mar 9, 2013 at 6:23 AM, Edward Z. Yang wrote: > Excerpts from Remi Turk's message of Fri Mar 08 18:28:56 -0800 2013: >> 1) The documentation suggests, but does not explicitly state, that >> castStablePtrToPtr `liftM` newStablePtr x >> will never yield a nullPtr. Is this guaranteed to be

Re: Foreign.StablePtr: nullPtr & double-free questions.

2013-03-08 Thread Edward Z. Yang
Excerpts from Remi Turk's message of Fri Mar 08 18:28:56 -0800 2013: > Good night everyone, > > I have two questions with regards to some details of the > Foreign.StablePtr module. [1] > > 1) The documentation suggests, but does not explicitly state, that > castStablePtrToPtr `liftM` newStableP

Foreign.StablePtr: nullPtr & double-free questions

2013-03-08 Thread Remi Turk
Good night everyone, I have two questions with regards to some details of the Foreign.StablePtr module. [1] 1) The documentation suggests, but does not explicitly state, that castStablePtrToPtr `liftM` newStablePtr x will never yield a nullPtr. Is this guaranteed to be the case or not? It would