void main()
{
T input(T)()
{}
T input(T : string)()
{}
}
Error message :
isimsiz.d(6): found 'input' when expecting ';' following statement
isimsiz.d(6): found ':' when expecting ')'
isimsiz.d(6): found 'string' when expecting ';' following statement
isimsiz.d(6): found ')' inst
bearophile Wrote:
> In D2 you can't define templates inside functions.
>
> Bye,
> bearophile
Thanks, But this example works:
void main()
{
T input(T)()
{}
}
Why ?
to functions.
But I think, they are works.)
POST: https://github.com/canalpay/turna/blob/master/library/post.d
GET : https://github.com/canalpay/turna/blob/master/library/get.d
Environment variables are easy to write for the function.
But How to write a cookie and session?
I looked at the codes