| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Creating a singleton |
SB>What do the constructors do to running multiple instances of your SB>application? If a constructor is private, it cannot be constructed by any process other than itself. In the public GetInstance() method, the reference can get checked for zero (having been declared static, it will be initialized to zero when created) and if zero, the class is created on the heap. SB> -=> Yours sincerely, Serge <=- SB>BTW, The distance between an alligator's eyes, in inches, is directly SB>proportional to the length of the alligator infeet. But... all alligators have only four feet. þ CMPQwk 1.42 999 --- Maximus/2 3.01* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000) SEEN-BY: 633/267 270 @PATH: 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.