From a9e2327a18e782df524c14dc42910d61a4785324 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 9 Sep 2010 15:59:29 -0700 Subject: Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot. --- src/lib/util.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/util.rs') 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; -- cgit v1.2.3