Am I the only one whose first instinct upon reading this is "EW!"?
You are not the only one, judging from my own experience. I made my own sort of algebraic datatypes / abstract datatypes in C# by using Enums and Objects and runtime casts. It works, but the code itself is hairy. I guess the good news is that once I built the ADT the---in my case, ugly---implementation is hidden. Jared. -- http://www.updike.org/~jared/ reverse ")-:" _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell