Home » Community » Coffee corner » Let's speak about Reflexion in C++ (I want know your point of view )
Let's speak about Reflexion in C++ [message #51283] |
Fri, 01 March 2019 14:19  |
 |
Xemuth
Messages: 387 Registered: August 2018 Location: France
|
Senior Member |
|
|
Hello Upp community !
Today I want speak about Reflexion, what you think about it ?
unlike modern language, C++ do not have any features allowing it easily.
Why ?
I mean, I guess they already thought about adding that kind of stuff to the
standard lib, but they did not do it and I guess it's for a good reason.
So can someone explain me why it still not exist in modern C++ ?
Thanks in advance everybody.
Have a good day !
[Updated on: Fri, 01 March 2019 14:25] Report message to a moderator
|
|
|
Re: Let's speak about Reflexion in C++ [message #51284 is a reply to message #51283] |
Fri, 01 March 2019 14:32   |
 |
mirek
Messages: 14257 Registered: November 2005
|
Ultimate Member |
|
|
Xemuth wrote on Fri, 01 March 2019 14:19Hello Upp community !
Today I want speak about Reflexion, what you think about it ?
unlike modern language, C++ do not have any features allowing it easily.
Why ?
I mean, I guess they already thought about adding that kind of stuff to the
standard lib, but they did not do it and I guess it's for a good reason.
So can someone explain me why it still not exist in modern C++ ?
Thanks in advance everybody.
Have a good day !
While I miss the feature from time to time, I do not consider it that much important. Usually, there is a way around that is perhaps different, but usually not really inferior (e.g. database model .sch files in U++).
Anyway, I would say that the reason why this is not in C++ standard is that perhaps because of worries about code bloat. Thing is reflection is not really needed most of time and even the most trivial use would need the whole program database present...
[Updated on: Fri, 01 March 2019 14:32] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 01:29:22 CEST 2025
Total time taken to generate the page: 0.02694 seconds
|