|
|
Home » U++ Library support » U++ Core » Callback (THISBACK) Improve
Re: Callback (THISBACK) Improve [message #31145 is a reply to message #31035] |
Thu, 10 February 2011 11:26   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
tojocky wrote on Wed, 02 February 2011 08:34 |
we need to keep old functionality and to provide new functions
|
i totally agree with you..thats why i dont quite understand why the hesitation. i'm using the changes in my projects for some time now. ide compiles and works as before.
* the provided cleanup does not change functionality at all (except for 1 case: class R return types as marked below), it extends stuff to some more use cases.
* if anyone could tell the reason for the class R return type templates from 2-args row and forth (and why 1 arg row is normal void), i could change that to it's previous state, making things *totally* compatible..
it's a cleanup, consider people trying to understand callback. with current sources..that's not easy.
[Updated on: Thu, 10 February 2011 11:28] Report message to a moderator
|
|
|
Re: Callback (THISBACK) Improve [message #32155 is a reply to message #31145] |
Thu, 28 April 2011 13:53   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
sorry to poke again..
this one is still pending.
i'm actually using this code for quite a long time now, and it makes no problems. besides the return value changes its the old code reordered. in the new layout of files the finding and extending of own stuff is a lot esier..
the 'class R' return value issue isn't explained so i have to consider it kinda legacy from testing times...which should be fixed for cleaning and has been adressed in this cleanup as well.
so what's the deal no taking it upstream?
(i want to become upstream again, have several changes laying at my side)..
the changes are really few (see what has been added in red for Callback, it's small (the remainder is only the same thing for Gate).
cheers
[Updated on: Thu, 28 April 2011 15:49] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Callback (THISBACK) Improve [message #41980 is a reply to message #30083] |
Sun, 09 February 2014 15:43  |
piotr5
Messages: 107 Registered: November 2005
|
Experienced Member |
|
|
I were thinking of variadic templates in combination with variadic functions, so "more parameters" are not necessary since infinitely many are allowed. as for return value, I am not sure it can still be called callback when it's returning non-boolean value. the caller usually doesn't know who is being called. better use THISBACK for your own class and let the callback store some value inside of that class instead of returning it. but I agree some generic code doing that for global functions would be nice. new Templates4U project on bazaar?
|
|
|
Goto Forum:
Current Time: Tue Apr 29 13:58:31 CEST 2025
Total time taken to generate the page: 0.04557 seconds
|
|
|