On 7/3/2026 5:12 PM, Christof Ressi wrote:
We should probably start updating existing externals by replacing the global symbols with gensym() calls. To simplify this process, we could add a macro that hides the global symbols, so we can easily detect externals that make use of them.
To clarify: I'm only talking about avoiding the global symbols in externals. Pd itself can, of course, continue to use them internally as an optimization.
Regarding the macro: the idea is to compile a version of Pd that does not export the global symbols. Externals that use these global symbols would fail to load with an error. If the symbols are protected by PD_INTERNAL, the externals would also fail to compile and an IDE would automatically highlight all uses.
Christof --- [email protected] - the Pd developers' mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/M3XGAZ3L7Q7ON3HYRYOY5OTM34SWHXEI/
