www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Template colon

reply "Gen" <Gen gmail.com> writes:
void write(FOO: bar.foo)()
{
}

what does the colon mean?
FOO: bar.foo
Jan 24 2015
next sibling parent ketmar <ketmar ketmar.no-ip.org> writes:
On Sat, 24 Jan 2015 21:16:13 +0000, Gen wrote:

 void write(FOO: bar.foo)()
 {
 }
=20
 what does the colon mean? FOO: bar.foo
here is the link which explains alot of things: http://dlang.org/template=
Jan 24 2015
prev sibling parent "Hampus Rosencrantz" <hampros2 gmail.com> writes:
On Saturday, 24 January 2015 at 21:16:14 UTC, Gen wrote:
 void write(FOO: bar.foo)()
 {
 }

 what does the colon mean?
 FOO: bar.foo
It's a template specialization.
Jan 24 2015