News for hackers. Stuff that matters.
Re:Nana: A modern C++ GUI library by stargrazer on Saturday April 20, 2019 @07:15PM (#19709521)
So... other than using std::function and other than something in Qt, what would be a more efficient C++[11,17] native way of doing a callback?
Re:Nana: A modern C++ GUI library by jcelerier on Sunday April 21, 2019 @04:48AM (#19711222)
Re:Nana: A modern C++ GUI library by Elv13 on Saturday April 20, 2019 @07:25PM (#19709564)
Going from "more efficient" to "most". That would be the assembly `asm("JMP *%eax")` instruction or something like it.
Re:Nana: A modern C++ GUI library by int_19h on Sunday April 21, 2019 @01:15AM (#19710647)
That would be the assembly way of doing a callback, not a C++ way.