Class inheritance (final keyword)


#1

I wanted to update my code to use the lastest juce tree, but i can’t compile any of the luabind/lua code i’m using that tries to inherit from the File class as it’s marked final, i don’t know about other classes (i’m stuck with this one). Is there a way around that ?


#2

I am not sure if there’s an easy solution for your problem. (Apart from just editing the JUCE source files yourself to remove the final keyword.) I initially had the same problem with the sol2 Lua binding library. Fortunately the sol2 developer was able to fix it on his side.

At least JUCE String, ValueTree, Font and Image are final too.