Hi,
I was wondering if the following is a bug. First off as expected this fails 
to typecheck complaining about unconsumed linear resources:
implement main0 () =
  let
    val (pf, pfgc | p) = malloc_gc (sizeof<int>)
  in
    ()
  end

But this passes typechecking and 'valgrind' detects that it leaks 4 bytes 
of memory:

implement main0 () =
  let
    val (_, _ | p) = malloc_gc (sizeof<int>)
  in
    ()
  end

The compiler is built from the head of ATS development tree.
Thanks!
-deech

-- 
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 ats-lang-users+unsubscr...@googlegroups.com.
To post to this group, send email to ats-lang-users@googlegroups.com.
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/dedecc02-44b8-42ce-adc5-20a94bb571f5%40googlegroups.com.

Reply via email to