The spec page that describes properties implies that user defined properties (using get/set methods) can only be members of classes/structs. But in fact the 'property syntax' also works for global functions. This should be reflected in the documentation.
For D2, such "global properties" will no longer be allowed.
Is there any particular reason?
No real reason for them to exist.
Documented global properties.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル