Nah icarus, i don't think so
publicVariable might not been working upon the missing
semicolon.
It's always allowed to use one pair of quotation marks "",
and it's allowed to use endless (not sure if really endless),
{} brackets.
Maybe you could also try to leave out the quotation marks and
replace it by those brackets:
onMapSingleClick {a = (_pos select 0); b = (_pos select 1); clicked = true; {publicVariable _x} forEach [a,b,clicked]}
But still i say this one should work too:
onMapSingleClick {a = (_pos select 0); b = (_pos select 1); clicked = true; "publicVariable _x" forEach [a,b,clicked]}
~S~ CD