[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/48398dbd0f42d258461332b619939e550be430de
fix issue 16653

https://github.com/dlang/phobos/commit/64ed49be5ab973a7d260b014dd39170a16ae37b1
Merge pull request #4977 from somzzz/issue_16653

https://github.com/dlang/phobos/commit/5febcef46617f15738e77e5e732ab9e37aa82649
better workaround for issue 16653, fix ketmar comment

https://github.com/dlang/phobos/commit/33b73851297ab2dd881f931ccf3de7849d838c1b
Merge pull request #5020 from adamdruppe/issue_16653

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2017-01-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/48398dbd0f42d258461332b619939e550be430de
fix issue 16653

https://github.com/dlang/phobos/commit/64ed49be5ab973a7d260b014dd39170a16ae37b1
Merge pull request #4977 from somzzz/issue_16653

https://github.com/dlang/phobos/commit/5febcef46617f15738e77e5e732ab9e37aa82649
better workaround for issue 16653, fix ketmar comment

https://github.com/dlang/phobos/commit/33b73851297ab2dd881f931ccf3de7849d838c1b
Merge pull request #5020 from adamdruppe/issue_16653

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2017-01-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/5febcef46617f15738e77e5e732ab9e37aa82649
better workaround for issue 16653, fix ketmar comment

https://github.com/dlang/phobos/commit/33b73851297ab2dd881f931ccf3de7849d838c1b
Merge pull request #5020 from adamdruppe/issue_16653

better workaround for issue 16653, fix ketmar comment

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2017-01-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

Adam D. Ruppe  changed:

   What|Removed |Added

 CC||destructiona...@gmail.com

--- Comment #5 from Adam D. Ruppe  ---
https://github.com/dlang/phobos/pull/5020

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2017-01-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--- Comment #4 from Ketmar Dark  ---
and now one can't have argument with name `value` anymore, 'cause it conflicts
with `value` variable in fix. dunno if it worth opening new bug, tho, 'cause
fix is not in any release yet, so it can be... fixed right here. ;-)

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2016-12-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/48398dbd0f42d258461332b619939e550be430de
fix issue 16653

https://github.com/dlang/phobos/commit/64ed49be5ab973a7d260b014dd39170a16ae37b1
Merge pull request #4977 from somzzz/issue_16653

fix issue 16653 - ParameterDefaultValueTuple fails to compile when function has
lazy param

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2016-12-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2016-12-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #2 from Lucia Cojocaru  ---
PR with fix here: https://github.com/dlang/phobos/pull/4977

This works for me now:

import std.traits;

int main()
{
void f(lazy int x = 0) {}
pragma(msg, ParameterDefaultValueTuple!f);
return 0;
}

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2016-12-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

--- Comment #1 from Lucia Cojocaru  ---
The cause of the issue is the way the template code is written in phobos:
https://github.com/dlang/phobos/blob/master/std/traits.d#L1225

It looks like this is expected for lazy variables:
http://forum.dlang.org/thread/mailman.62.1288627040.21107.digitalmars-d-le...@puremagic.com

Should we support the ParameterDefault template for functions with lazy
parameters?

--


[Issue 16653] ParameterDefaultValueTuple fails to compile when function has lazy param

2016-12-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16653

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com
   Assignee|nob...@puremagic.com|lucia.mcojoc...@gmail.com

--