Commit 64800e07 authored by John van Groningen's avatar John van Groningen

add GenericDict0 with lazy field for generic functions with arity zero

parent 9adb3ff1
......@@ -69,7 +69,8 @@ derive bimap FIELD
derive bimap (->)
derive bimap Bimap
// HACK: dictionary for all generics.
// HACK: dictionaries for all generics.
// It works since all generic classes have only one method and do not inherit
// from other classes
:: GenericDict a = { generic_dict :: !a }
:: GenericDict0 a = { generic_dict0 :: a }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment