JUCE Demos use things that should never be used

The DialogsDemo uses runModalLoop, whose documentation says:

Note that you SHOULD NEVER USE THIS METHOD! Modal loops are a dangerous construct because things that happen …

Should JUCE demos use things which should never be used? The demos serve the purpose of demonstrating how to do stuff with JUCE, and users might look at the example code without reading the method’s documentation and end up also using things that should never be used…

8 Likes