--
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+unsubscribe@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/acad14e7-3f3b-4daf-9105-78864b00034a%40googlegroups.com.
It will be okay if you put 'p' back:// `g` evaluates `f` and then frees it.
fn g(f: &t >> t?): int = let
val r = f()
val _ = cloptr_free($UN.castvwtp0(f))
prval p = view@ f // <-- here
prval () = view@f := p
in r end
>>val _ = cloptr_free($UN.castvwtp0(f))The above line is safe. We just need to find a better way to name it :)
So `view@` peaks something?
--
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+unsubscribe@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/1ffee64c-fcfa-473c-98cd-a2d28b60c8d0%40googlegroups.com.
Then we have to find a typing rule for doing it. We shoulddo this safely in ATS3.
--
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+unsubscribe@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/b5c30994-725b-4214-9780-cbe1c19972d7%40googlegroups.com.
Here is what I have in mind at this moment:ATS3 = ATS2 + meta-programmingType inference plays a big role to provide support for meta-programming.