comparison 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
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
1 module dmd.DDMDExtensions;
2
3 /++
4 If you're making a tool based off of DDMD,
5 you can uncomment the commented lines below,
6 and change "DSuperTool" to the name of your tool.
7 Then, create your own module to handle
8 "insertMemberDSuperTool".
9
10 That will allow you to insert code into any
11 module or class in DDMD's AST without actually
12 having to modify DDMD's actual AST code.
13 +/
14
15 //import DSuperTool.DDMDExtension;
16
17 template insertMemberExtension(T)
18 {
19 //mixin insertMemberDSuperTool!T;
20 }