
5 Nov
2010
5 Nov
'10
7:51 p.m.
Hi!
On Fri, Nov 5, 2010 at 12:12 PM, Bulat Ziganshin
look into HsLua sources. it does something like you asking (converting return type into sequence of commands) so it mau be what you are looking for. it uses typeclasses for this effect. the same technique used in haskell printf implementation afaik
While reading the source code I found that in loadstring you do not make sure that free is called even in a case of an exception. Is this not necessary? Mitar