Thu, 17 Aug 2000 07:05:44 +0200 (MET DST), Axel Simon <[EMAIL PROTECTED]> pisze: > touchGC (GC fObj) = seq fObj (return ()) It should work only if marked as NOINLINE. Because otherwise the call could be "optimized": since the value has been already evaluated before, the compiler can assume that there is no point in doing seq again (although it's not right for this usage of seq). Hm, I didn't realize that noinlined seq should be good. > Wasn't there some talk about a primitive? Why? It can be even more efficient than noinlined seq. It will be inlined and kept in place through all optimization process, treated as a side-effecting operation that cannot be moved or removed. Finally in the code generation it needs not generate any code. It can even be not strict, as long as the object address is still available somewhere so GC won't kill it. -- __("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTĘPCZA QRCZAK
- Re: Accessing ForeignObj contents from Hask... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents from ... Manuel M. T. Chakravarty
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- Re: Accessing ForeignObj contents from Hask... Keith Wansbrough
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents from Hask... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents from ... Manuel M. T. Chakravarty
- Re: Accessing ForeignObj contents f... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj conten... Manuel M. T. Chakravarty
- RE: Accessing ForeignObj contents from Hask... Axel Simon
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents f... Manuel M. T. Chakravarty
- Re: Accessing ForeignObj conten... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj c... Manuel M. T. Chakravarty
- Re: Accessing ForeignO... Marcin 'Qrczak' Kowalczyk
- RE: Accessing ForeignObj contents from ... Manuel M. T. Chakravarty
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- RE: Accessing ForeignObj contents from Hask... Manuel M. T. Chakravarty
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- RE: Accessing ForeignObj contents from Haskell Simon Marlow