|
It would be great to do an exploration of binary vs source level binding in C++ but I'm not sure what you'd call it.
For example, a pure virtual class (interface) is a binary binding mechanism. You are essentially passing around a table of function pointers. You can pass a class *instance* as a *function* argument and bind to it at run time.
An example of "source level binding" (if you want to call it that) would be passing a class as a template argument to a template class, and then operating on the first class's methods from inside the second class.
Anyone have any ideas?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Not sure I understand, but I have done this.
I have an large array of function addresses.
They are indexed by "name" using a hash table and executed at run time.
???
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I'm referring to a vtbl, which is created by the C++ compiler.
in memory it exists as an array of pointers to functions. However, each function signature is potentially different than the next.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I understand. My implementation was pure C.
Not being a C++ expert, I may not be interpreting your approach the same.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
"Extending".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Extending???
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Interesting idea, don't know as I've ever seen anything on this subject before.
Maybe?
C++ Binding Mechanisms
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
#Worldle #613 2/6 (100%)
π©π©π©π©π¨β¬οΈ
π©π©π©π©π©π
https://worldle.teuteuf.fr
no map needed not too hard
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
|
RIP David, you were one of the best. You will be missed.
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Loved that show.
R.I.P.
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Ohhh.... Duggy (or however is written) went...
RIP
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
He was known as "Ducky", because his surname was Mallard, which is a breed of wild duck.
|
|
|
|
|
greetings kind regards may i inquire how you happen to know of "The Man From U.N.C.L.E." as i see no USA flag on your profile page . should i assume USA television is universal .
|
|
|
|
|
Sapphire is without her Steel.
|
|
|
|
|
I wonder if that is why CBS ran the first episode of NCIS last night?
Or was it a coincedence because of the writer and actor strike?
Iβve given up trying to be calm. However, I am open to feeling slightly less agitated.
Iβm begging you for the benefit of everyone, donβt be STUPID.
|
|
|
|
|
i never missed as episode even though it became campy in later seasons . i much favored Illya (cool name) to Mr. Solo .
|
|
|
|
|
Channel D is now permanently closed...
|
|
|
|
|
not a fan. sorry.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Unsteady aircraft oft indicates. (11)
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
TRAFFICATOR
(Anagram of AIRCRAFTOFT)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Easy week continues! YAUT
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
#Worldle #612 4/6 (100%)
π©π©π©π©β¬β¬οΈ
π©π©π©π©π¨βοΈ
π©π©π©π©π¨βοΈ
π©π©π©π©π©π
https://worldle.teuteuf.fr
hard no map
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
#Worldle #613 1/6 (100%)
π©π©π©π©π©π
https://worldle.teuteuf.fr
Okay I cheated, I used Google maps but I did have a fairly good idea of the continent... honest...
βThat which can be asserted without evidence, can be dismissed without evidence.β
β Christopher Hitchens
|
|
|
|
|
i believe you as i have had same experience.
i know i am right area but details elude
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|