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

Reply via email to