What is a singleton?

  • Thread starter Christopher Benson-Manica
  • Start date
C

Christopher Benson-Manica

I've seen several threads here about singletons and implementing them, but
what the heck are they?
 
M

Mike Wahler

Christopher Benson-Manica said:
I've seen several threads here about singletons and implementing them, but
what the heck are they?

A type which can be only instantiated once.

-Mike
 
J

jeffc

Christopher Benson-Manica said:
I've seen several threads here about singletons and implementing them, but
what the heck are they?

A class of which you only want 1 instance created in your program.
 
A

Alexander Terekhov

Christopher said:
I've seen several threads here about singletons and implementing them, but
what the heck are they?

Confederate rangers whose guerrilla bands frequently attacked and disrupted
Union supply lines in Virginia and Maryland during the American Civil War.

regards,
alexander.
 
R

Ron Natalie

Alexander Terekhov said:
Confederate rangers whose guerrilla bands frequently attacked and disrupted
Union supply lines in Virginia and Maryland during the American Civil War.
I thought it was when you only had one card in a given suit, you can count it
for two points when evaluating your bridge hand (unless you have unprotected
honors).
 
C

Christopher Benson-Manica

Ron Natalie said:
I thought it was when you only had one card in a given suit, you can count it
for two points when evaluating your bridge hand (unless you have unprotected
honors).

Well, yes, I knew that. Unprotected honors get a penalty, so K is probably
around 4 points, Q is 3, and J is 2. And of course, a singleton in your
*partner's* suit is likely to lead to some unpleasantness ;)
 
R

Ron Natalie

Christopher Benson-Manica said:
Well, yes, I knew that. Unprotected honors get a penalty, so K is probably
around 4 points, Q is 3, and J is 2. And of course, a singleton in your
*partner's* suit is likely to lead to some unpleasantness ;)

How's your aunt in Chicago?
 
R

Ron Natalie

Christopher Benson-Manica said:
*blinks* What?
Sorry, inside joke. Where I used to play we had an ersatz Chicago Convention
where if you had a really bad hand:

N: How's your aunt in Chicago?
S: (if they have a bad had as well) She died.
N: I only have 12 cards.
S: I have 14 cards.

Both then throw their hands face up into the middle of the table.
 
A

Alexander Terekhov

Christopher said:
Well, yes, I knew that. Unprotected honors get a penalty, so K is probably
around 4 points, Q is 3, and J is 2. And of course, a singleton in your
*partner's* suit is likely to lead to some unpleasantness ;)

Yeah. K singleton, Q singleton... "Real Men play Gin".

regards,
alexander.
 
C

Christopher Benson-Manica

Ron Natalie said:
Sorry, inside joke. Where I used to play we had an ersatz Chicago Convention
where if you had a really bad hand:
N: How's your aunt in Chicago?
S: (if they have a bad had as well) She died.
N: I only have 12 cards.
S: I have 14 cards.

LOL!!! I'm sure that didn't work more than a couple of times ;)
 
R

Ralf Schneeweiß

A singleton is one of the Design Patterns which are described in the book:
Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides: Design Patterns.
Elements of Reusable Object Oriented Software. ISBN 0-201-63361-2

Ralf
www.oop-trainer.de
 
J

J. Campbell

Ron Natalie said:
Sorry, inside joke. Where I used to play we had an ersatz Chicago Convention
where if you had a really bad hand:

N: How's your aunt in Chicago?
S: (if they have a bad had as well) She died.
N: I only have 12 cards.
S: I have 14 cards.

Both then throw their hands face up into the middle of the table.

LOL...too bad this won't work with Yahoo! bridge. I'm adding it to my
bidding profile pronto!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top