Constrained genericity: Difference between revisions

Content added Content deleted
Line 397: Line 397:


Neither Icon nor Unicon are statically typed.
Neither Icon nor Unicon are statically typed.
In Unicon, new types can be defined as classes. The followling solution
In Unicon, new types can be defined as classes. The solution shown
follows the Scala approach.
follows the Scala approach.
<lang unicon>import Utils # From the UniLib package to get the Class class.
<lang unicon>import Utils # From the UniLib package to get the Class class.