#3 Global variables in door namespace

開啟中
stevet2 年之前創建 · 1 條評論

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.
bugz commented 1 年之前
所有者

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.
Sign in to join this conversation.
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容