On Tuesday, 10 November 2015 at 14:14:33 UTC, DlangLearner wrote:
Please enlighten me if this can be done, thanks.
If i understand you, you could use a templated function: import std.stdio; void foo(alias a)() { writefln("%s was passed in.", a.stringof); } void main(string[] args) { auto bar = "bar"; foo!(bar); }