diff options
| author | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
| commit | a9e2327a18e782df524c14dc42910d61a4785324 (patch) | |
| tree | 8763224ac3a4c11275dd64257aac47036c97c48d /src/lib/util.rs | |
| parent | Fixed lost signal notifications. (diff) | |
| download | rust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz rust-a9e2327a18e782df524c14dc42910d61a4785324.zip | |
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/lib/util.rs')
| -rw-r--r-- | src/lib/util.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs index 1688c263..dee93773 100644 --- a/src/lib/util.rs +++ b/src/lib/util.rs @@ -1,4 +1,7 @@ -type option[T] = tag(none(), some(T)); +tag option[T] { + none(); + some(T); +} type operator[T, U] = fn(&T) -> U; |