Problem with type-casting to interface arrays

Vladimir Panteleev thecybershadow at gmail.com
Tue Mar 20 09:41:23 PDT 2007


On Tue, 20 Mar 2007 08:29:55 +0200, Lionello Lunesu <lio at lunesu.remove.com> wrote:

> Maybe it would be a good idea to add a separate cast expression for
> reinterpret_cast. The cast(..) can do anything from a C-cast to
> dynamic_cast to static_cast to reinterpret_cast. All the safe casts can
> use cast(..) but I think that for conversions without any link between
> the two types, it would be better to introduce some new cast
> syntax/keyword.. cast!(..)? :)

I agree. Imagine the mess this could accidentally cause in templates.

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list