Manifest constants (was const again)

Denton Cockburn diboss at hotmail.com
Sat Dec 8 07:49:38 PST 2007


On Sat, 08 Dec 2007 11:55:47 +0100, Jérôme M. Berger wrote:

>> A list of one is still a list.
> 	Ask any one who is not a mathematician and he will tell you that
> you need at least two elements in a list. Moreover, even if there is
> only one element in the list at this particular time, there is still the
> implication that there could be others.

No, you don't need two elements in a list.
That's just crazy talk.

enum would still fit what you're saying, here:

enum x = 5; // one element in this 'list'
enum {
  x = 5;
  y = 7;  // now we've got 2
}



More information about the Digitalmars-d mailing list