October 05, 2014 [Issue 13571] Overload of std.range.tee which accepts a functions does not accept structs or classes with opCall | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13571 monkeyworks12@hotmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from monkeyworks12@hotmail.com --- I tried adding support for opCall to tee, and I ran into some problems. As you can just pass the struct/object with opCall to the overload of tee that takes an output range as a function argument, the extra complexity that's necessary to support taking structs/objects with opCall as a template argument is not worth it IMO. Therefore, I'm going to close this. -- |
October 19, 2014 [Issue 13571] Overload of std.range.tee which accepts a functions does not accept structs or classes with opCall | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13571 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> --- Probably the simplest way to implement this would be to make `tee` use `unaryFun`, and, if necessary, add `opCall` support to `unaryFun` instead. -- |
Copyright © 1999-2021 by the D Language Foundation