单身无静电:可能? [英] Singleton without static : possible??
本文介绍了单身无静电:可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在不使用静态变量的情况下实现Singleton
或全局变量。
谢谢。
--emmemence。
Hi,
Is it possible to implement a Singleton without using static variables
or global variables.
Thanks.
--eminemence.
推荐答案
eminemence< em ******** @ gmail.comwrote:
eminemence <em********@gmail.comwrote:
>是否可以在不使用静态变量或全局变量的情况下实现Singleton。
>Is it possible to implement a Singleton without using static variables
or global variables.
也许通过写入文件。但这将是一个主要的好处。
史蒂夫
Maybe by writing to a file. But it would be a major kludge.
Steve
还有其他方式吗?
--eminemence。
Steve Pope写道:
Still any other way??
--eminemence.
Steve Pope wrote:
eminemence< em ******** @ gmail .comwrote:
eminemence <em********@gmail.comwrote:
是否可以在不使用静态变量
或全局变量的情况下实现Singleton。
Is it possible to implement a Singleton without using static variables
or global variables.
也许通过写入文件。但这将是一个主要的好处。
Steve
Maybe by writing to a file. But it would be a major kludge.
Steve
eminemence写道:
eminemence wrote:
是否可以在不使用静态变量的情况下实现Singleton
或全局变量。
谢谢。
- 纪念。
Hi,
Is it possible to implement a Singleton without using static variables
or global variables.
Thanks.
--eminemence.
No.
No.
这篇关于单身无静电:可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文