Mercurial > projects > ddmd
view dmd/DDMDExtensions.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | |
children |
line wrap: on
line source
module dmd.DDMDExtensions; /++ If you're making a tool based off of DDMD, you can uncomment the commented lines below, and change "DSuperTool" to the name of your tool. Then, create your own module to handle "insertMemberDSuperTool". That will allow you to insert code into any module or class in DDMD's AST without actually having to modify DDMD's actual AST code. +/ //import DSuperTool.DDMDExtension; template insertMemberExtension(T) { //mixin insertMemberDSuperTool!T; }