Timeline for answer to When & why to use delegates? by Alex Budovski
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 15, 2016 at 2:04 | history | edited | Null Head | CC BY-SA 3.0 |
code completeness, ready for running
|
| Feb 25, 2016 at 5:10 | comment | added | Alex Budovski | @BKSpurgeon Because you want different integrands? | |
| Feb 14, 2016 at 21:44 | comment | added | BenKoshy | @Alex thank you for your explanation. but why not just create a new type called Intergrand, rather than passing an interface called Intergrand? | |
| Nov 9, 2015 at 8:15 | comment | added | bgusach |
Very good explanation, it helped me understand this better. There is a small "but": under the hood, there is object instantiation. Gauss3(MyFunc1, a, b, n) is a shorthand for Gauss3(new Integrand(MyFunc1), a, b, n).
|
|
| Nov 13, 2014 at 3:02 | comment | added | CMCDragonkai | @Pacerier it's so that you can type check the inputted function. Anonymous functions don't have a type signature. | |
| Nov 5, 2014 at 23:21 | comment | added | Pacerier | Why not simply use anonymous functions / lambdas then? | |
| Jan 7, 2010 at 13:17 | history | answered | Alex Budovski | CC BY-SA 2.5 |