What is the issue you are having with the code? On Thu, Jun 20, 2019 at 8:03 PM aditya siram <[email protected]> wrote:
> Cool, that's good to know. > > My follow up question: even if I did handle the exception how do I free > the resource? The following doesn't work: > > exception MyException of (list_vt(int)) > > fun test(l : list_vt(int)): void = > $raise MyException(l) > > implement main0(argc,argv) = > try > test(list0_vt_cons(1,list0_vt_nil())) > with > ~MyException(l) => free l > > > > On Thursday, June 20, 2019 at 6:38:57 PM UTC-5, Raoul Duke wrote: >> >> Worthy of being a faq type entry? High level question would be, under >> what-all conditions do we hit such potential leaks? >> > -- > You received this message because you are subscribed to the Google Groups > "ats-lang-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/ats-lang-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ats-lang-users/366889e9-e88b-471f-8237-92b3c86923d4%40googlegroups.com > <https://groups.google.com/d/msgid/ats-lang-users/366889e9-e88b-471f-8237-92b3c86923d4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLodNzvVjmMXbtp6Ziz76Z9vw2mfUk_%3DZMt4cy4RDaXEUA%40mail.gmail.com.
