Item2489: WysiwygPlugin Constants should use export instead of aliasing it to some WC module
Priority: Enhancement
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
FoswikiTrunk:WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/Constants.pm has a hack at the end to alias its own module to WC:: so other plugins can use $WC::CONSTANT or WC::function, instead of the fully qualified name Foswiki::Plugins::WysiwygPlugin::Constants::CONSTANT.
Even though this works fine, it's hackish, and would be much more cleaner using the EXPORT mechanism.
Rem: one would have to benchmark it to ensure EXPORT will not slow things down, or at least not too much
--
OlivierRaginel - 10 Dec 2009