like types

Adam D. Ruppe destructionator at gmail.com
Sun Aug 7 06:47:05 PDT 2011


bearophile:
> Is this the same thing you are saying?

Yeah, though in D you'd have to use objects and interfaces
rather than primitives.

Casting to the interface would return null if it doesn't match,
so it compiles but then errors at runtime.


More information about the Digitalmars-d mailing list