Two cases showing imperfection of the const system

James Miller james at
Thu Feb 16 15:08:29 PST 2012

> The first problem is trivial, solving the second one in a type safe way
> would require adding parametric polymorphism to D. (Which I'd love to have!)

Can't you emulate type-safe parametric polymorphism with template constraints?

More information about the Digitalmars-d mailing list