You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats_...@discoursemail.com, ats-lang-users
Hi,
I was reading a chapter about type inference and constraint solving in ML. It mentioned a quick Union/Find algorithm for testing equivalent classes. I translate the code into ATS, and pasted here at [glot.io: Union/Find](https://glot.io/snippets/eiaoq3icf1)
Just for fun.
-- Steinway Wu Sent with Airmail
gmhwxi
unread,
Sep 9, 2016, 7:07:55 PM9/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats-lang-users, ats_...@discoursemail.com
I suggest:
fun{} addr_of{a:t@ype} (pt a): ptr
Casting a pointer(64bit) to an integer(32bit) is a bit dangerous.
Steinway Wu
unread,
Sep 9, 2016, 11:25:45 PM9/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message