#3 Global variables in door namespace

オープン
2 年 前stevet によって開かれました · 1 コメント
Steve Thielemann2 年 前 にコメントしました

There are many variables in the door namespace.

I'm not sure if that's really a problem or not. You can't sensibly have more then one door instance running at a time.

It makes the code simpler to just check the global, rather then having everything need an instance of the Door structure.

There are many variables in the door namespace. I'm not sure if that's really a problem or not. You can't sensibly have more then one door instance running at a time. It makes the code simpler to just check the global, rather then having everything need an instance of the Door structure.
bugz1 年間 前 にコメントしました
オーナー

It might make it simpler for users to use the library if all of the variables are in the door, rather then some in the structure, and some in the namespace.

It might make it simpler for users to use the library if all of the variables are in the door, rather then some in the structure, and some in the namespace.
会話に参加するには サインイン してください。
マイルストーンなし
担当者なし
2 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません