using enums as key in associative array
spir
denis.spir at gmail.com
Tue Mar 8 07:40:08 PST 2011
On 03/08/2011 03:48 PM, Jonathan M Davis wrote:
> I really don't understand your problem with module constructors. They're
> fantastic.
I may be wrong, but I think this point of view is a "where I can from"
statement. C's char* are fantastic when you have never used a PL with builtin
strings. There are languages in which you don't need to list twice everything
just to have them available at import time.
// data definition
X foo;
Y bar;
Z baz;
...
static this {
foo = ...;
bar = ...;
baz = ...;
...
}
Denis
--
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d-learn
mailing list