Created
January 19, 2016 02:56
-
-
Save FlyingJester/2eeff9ee722806e0b3fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :- module unique_integer. | |
| :- interface. | |
| % Written without testing...ignore small errors :P | |
| :- type xyz ---> xyz(int). | |
| :- pred abc(int::in, xyz::uo) is det. | |
| :- implementation. | |
| :- import_module int. | |
| % This seems bad... | |
| % I'm kind of cheating the mode system by making a unique integer just by adding zero to it. | |
| abc(Int, xyz(Int+0)). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment