function-local template specialization error

2010-07-14 Thread canalpay
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

Re: function-local template specialization error

2010-07-14 Thread canalpay
bearophile Wrote: > In D2 you can't define templates inside functions. > > Bye, > bearophile Thanks, But this example works: void main() { T input(T)() {} } Why ?

How to web programming with D2?

2011-02-10 Thread canalpay
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