February 25, 2004 Re: Initializer lists? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | I believe you can achieve the same result (at the module level) via a static constructor. - Kris "Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:opr3x69qshheztw6@news.digitalmars.com... > On Wed, 25 Feb 2004 11:16:04 -0700, Russ Lewis <spamhole-2001-07-16@deming-os.org> wrote: > > > This code compiles & runs cleanly: > > > > int main() { > > int a,b; > > a = b = 7; > > printf("%d %d\n", a,b); > > return 0; > > } > > > Ok, I had it on module level: > > module bla; > > uint a, b; > a = b = 2*4; > > This one didn't compile: "no identifier for declarator". > > What I would like to do is: > uint a = b = 2*4; > > <further code> > > -- > Robert M. Münch > Management & IT Freelancer > http://www.robertmuench.de |
Copyright © 1999-2021 by the D Language Foundation