Timeline for Library IO: Use Interface classes or Callbacks?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2016 at 8:41 | vote | accept | Jan Krüger | ||
Dec 16, 2016 at 16:59 | answer | added | Periata Breatta | timeline score: 1 | |
Dec 16, 2016 at 8:58 | vote | accept | Jan Krüger | ||
Dec 19, 2016 at 8:41 | |||||
Dec 15, 2016 at 16:47 | comment | added | Jan Krüger | I completed the example now. I have been thinking a little bit too long about it and thought my example code would be fine but in fact I was thinking too far. I don't know a lot about Java, but I'm not aware of any C++11 features or any libraries which would allow for a similar functionality to Java. | |
Dec 15, 2016 at 16:44 | comment | added | Jan Krüger | I completed the example now. I have been thinking a little bit too long about it and thought my example code would be fine but in fact I was thinking too far. | |
Dec 15, 2016 at 16:39 | history | edited | Jan Krüger | CC BY-SA 3.0 |
Added Implementation of hasEventCompleted() due to comment.
|
Dec 15, 2016 at 15:41 | comment | added | Erik Eidt |
I don't understand: why test if (instance->hasEventCompleted) ? There can be no instance that hasn't overridden the abstract method, no?
|
|
Dec 15, 2016 at 14:47 | answer | added | Q Q | timeline score: 3 | |
Dec 15, 2016 at 11:13 | comment | added | marstato | I know C++ only barely so i'll comment instead of answering. AFAICT you can implement Pub/Sub (callbacks) with interfaces as well. Thats the way things work in the Java, C# and JS universes. EDIT: some examples: developer.android.com/reference/android/view/… docs.oracle.com/javase/8/docs/api/java/awt/event/… | |
Dec 15, 2016 at 11:00 | history | edited | Jan Krüger | CC BY-SA 3.0 |
Added more general question
|
Dec 15, 2016 at 10:55 | review | First posts | |||
Dec 16, 2016 at 10:35 | |||||
Dec 15, 2016 at 10:53 | history | asked | Jan Krüger | CC BY-SA 3.0 |