[Issue 6484] compose can't take multi arg functions

2020-10-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6484

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #6 from Dlang Bot  ---
dlang/phobos pull request #7685 "Fix issue 6484 - compose can't take multi arg
functions" was merged into master:

- 4083852b4b3637595d1a35eb85fc97b7dcc6ced0 by Paul Backus:
  Fix issue 6484 - compose can't take multi arg functions

https://github.com/dlang/phobos/pull/7685

--


[Issue 6484] compose can't take multi arg functions

2020-10-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6484

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #5 from Dlang Bot  ---
@pbackus created dlang/phobos pull request #7685 "Fix issue 6484 - compose
can't take multi arg functions" fixing this issue:

- Fix issue 6484 - compose can't take multi arg functions

https://github.com/dlang/phobos/pull/7685

--


[Issue 6484] compose can't take multi arg functions

2020-10-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6484

Paul Backus  changed:

   What|Removed |Added

 CC||snarwin+bugzi...@gmail.com

--- Comment #4 from Paul Backus  ---
This bug still exists in 2.094.0. The example in comment 3 fails to compile,
with the following output:

---
bug.d(7): Error: template `std.functional.compose!(f, compose).compose` cannot
deduce function from argument types `!()(int, int, int)`, candidates are:
/usr/include/dmd/phobos/std/functional.d(1161):`compose(E)(E a)`
bug.d(7):while evaluating: `static assert(compose(E)(E a)(1, 2, 3) ==
f(g(h(1, 2, 3`
---

--


[Issue 6484] compose can't take multi arg functions

2014-06-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6484

Justin Whear  changed:

   What|Removed |Added

 CC||jus...@economicmodeling.com

--- Comment #3 from Justin Whear  ---
Kenji's made some recent changes to compose and I cannot reproduce in 2.065.

int f(int a){ return a; } 
int g(int a){ return a; }
int h(int a,int b,int c){ return a * b * c; }

import std.functional;
alias compose!(f,g,h) F;
static assert(F(1,2,3) == f(g(h(1,2,3;

--


[Issue 6484] compose can't take multi arg functions

2013-02-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6484


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #2 from Andrej Mitrovic  2013-02-05 
13:19:21 PST ---
(In reply to comment #1)
> Commit pushed to master at https://github.com/D-Programming-Language/phobos
> 
> https://github.com/D-Programming-Language/phobos/commit/aa40b3b47d64dbf55bd559f113148925ced61ccf
> Merge pull request #753 from mylodon/enh6484
> 
> fix issue 6484

Note: this pull is unrelated to this bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6484] compose can't take multi arg functions

2012-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6484



--- Comment #1 from github-bugzi...@puremagic.com 2012-08-27 01:34:27 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/aa40b3b47d64dbf55bd559f113148925ced61ccf
Merge pull request #753 from mylodon/enh6484

fix issue 6484

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---