DMD 1.019 and 2.003 releases

Craig Black cblack at ara.com
Mon Jul 23 08:29:40 PDT 2007


"Christian Kamm" <kamm.incasoftware at shift-at-left-and-remove-this.de> wrote 
in message news:f823if$1seh$1 at digitalmars.com...
> The extended compile time reflection opens the door for all kinds of cool
> things! Here's an RTTI-Visitor, for instance.
>
> It uses compile-time foreach to build a sequence of if-statements that 
> check
> the classinfo and call the matching method.
>
> Regards,
> Christian

Cool, but it would be better to implement double dispatch than the Visitor 
pattern.  It is ultimately more efficient and more flexible.

-Craig 





More information about the Digitalmars-d-announce mailing list