Re: Extracting string parameter from template instance received via alias parameter

2014-09-12 Thread Ali Çehreli via Digitalmars-d
On 09/12/2014 12:44 PM, MrSmith wrote: Given the following program: - import std.stdio; template first(string s) { string first(string par) { if (par == s) return true; else return false; }

Re: Extracting string parameter from template instance received via alias parameter

2014-09-12 Thread MrSmith via Digitalmars-d
On Friday, 12 September 2014 at 20:37:44 UTC, Ali Çehreli wrote: On 09/12/2014 12:44 PM, MrSmith wrote: Given the following program: - import std.stdio; template first(string s) { string first(string par) { if (par == s)

Re: Extracting string parameter from template instance received via alias parameter

2014-09-12 Thread anonymous via Digitalmars-d
On Friday, 12 September 2014 at 19:44:28 UTC, MrSmith wrote: Given the following program: - import std.stdio; template first(string s) { string first(string par) { if (par == s) return true;