Hi!

The following code compiles but segfaults when run:

         val from_vt_nine = from_vt(9)
         val nine = stream_vt_head_exn<int>(from_vt_nine)
         val () = println!(nine: int)

The follwing code, on the other hand, executes as expected:

         val from_vt_nine = from_vt(9)
         val- ~stream_vt_cons(nine, ns) = !from_vt_nine
         val () = println!(nine: int)

Both examples prefaced with

         #include "share/atspre_define.hats"
         #include "share/atspre_staload.hats"
         
         val from_vt = fix f(i: int): stream_vt(int) =>
           $ldelay( stream_vt_cons{int}(i, f(i+1))
                     , ~f(i) )

What's up with this?

-- 
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/25a52904-e4a2-464d-90d1-bda5f00797a9%40googlegroups.com.

Reply via email to