←back to thread

196 points svlasov | 2 comments | | HN request time: 0.001s | source
Show context
kstrauser ◴[] No.40852102[source]
I haven't touched C++ since undergrad. Neither have I written any Qt code. But from memory, doesn't Qt's moc implement some of this stuff because it wasn't available in C++? Could this replace moc?
replies(4): >>40852283 #>>40852302 #>>40852535 #>>40854005 #
1. fluoridation ◴[] No.40852283[source]
Qt has straight-up dynamic reflection. You can get pointers to functions from strings, and such. This is just static reflections (which is still very useful!), so it's not a complete replacement. Even if it was, I would Qt would replace its build system.
replies(1): >>40855502 #
2. account42 ◴[] No.40855502[source]
Static reflection makes it much easier to build dynamic reflection though, especially without meta-compilers and excessive macro use.