digitalmars.D.learn - opApply with Type Inference and Templates?
- Jerry (6/6) Feb 15 2017 I am trying to do opApply to work when the delegate passed when
- Basile B. (3/9) Feb 15 2017 No, by any chance do you ask this for the tuple unpacking PR ?
- Jerry (3/5) Feb 16 2017 Was just trying to use a container I created in functions with
- =?UTF-8?Q?Ali_=c3=87ehreli?= (4/10) Feb 16 2017 Related:
I am trying to do opApply to work when the delegate passed when it is and isn't nogc/nothrow. As soon as you involve a template though, type inference goes out the door. I want to be able to use opApply with templates (to get the auto nogc/nothrow deducation passed on the delegate passed) but still be able to use type inference. Is there any way to do this?
Feb 15 2017
On Thursday, 16 February 2017 at 03:20:12 UTC, Jerry wrote:I am trying to do opApply to work when the delegate passed when it is and isn't nogc/nothrow. As soon as you involve a template though, type inference goes out the door. I want to be able to use opApply with templates (to get the auto nogc/nothrow deducation passed on the delegate passed) but still be able to use type inference. Is there any way to do this?No, by any chance do you ask this for the tuple unpacking PR ? If so I've also tried and failed.
Feb 15 2017
On Thursday, 16 February 2017 at 04:09:18 UTC, Basile B. wrote:No, by any chance do you ask this for the tuple unpacking PR ? If so I've also tried and failed.Was just trying to use a container I created in functions with and without nogc/nothrow.
Feb 16 2017
On 02/15/2017 07:20 PM, Jerry wrote:I am trying to do opApply to work when the delegate passed when it is and isn't nogc/nothrow. As soon as you involve a template though, type inference goes out the door. I want to be able to use opApply with templates (to get the auto nogc/nothrow deducation passed on the delegate passed) but still be able to use type inference. Is there any way to do this?Related: http://forum.dlang.org/post/ovitindvwuxkmbxufzvi forum.dlang.org Ali
Feb 16 2017