3 ms·
Just read the original post and think GUI callbacks, and you'll get what I was trying to convey. You can have addToWindow take any element, there just has to b
by jganetsk 17y ago
Just read the original post and think GUI callbacks, and you'll get what I was trying to convey.
You can have addToWindow take any element, there just has to be a function called 'asElement' which will take your type and produce a relevent 'element' data structure. Further, you can use Haskell-style type classes or ML-style functors to make this easy and polymorphic.