On Monday, 27 November 2017 at 16:04:14 UTC, Dukc wrote:
Debatable in this case. Consider:

string servicePhoneNumber;

final switch (car.manufacturer) //an enumerated value.

Well, the compiler can see it is initialized before being read again later, so that *should* pass the check (at least conservatively- the spec is flexible enough to let the compiler not catch them all).
            • Re: Fl... Adam D. Ruppe via Digitalmars-d-learn
              • Re... A Guy With a Question via Digitalmars-d-learn
              • Re... Steven Schveighoffer via Digitalmars-d-learn
              • Re... Adam D. Ruppe via Digitalmars-d-learn
              • Re... Michael V. Franklin via Digitalmars-d-learn
              • Re... Michael V. Franklin via Digitalmars-d-learn
              • Re... A Guy With a Question via Digitalmars-d-learn
              • Re... Michael V. Franklin via Digitalmars-d-learn
              • Re... A Guy With a Question via Digitalmars-d-learn
          • Re: Floatin... Dukc via Digitalmars-d-learn
            • Re: Fl... Adam D. Ruppe via Digitalmars-d-learn
        • Re: Floating po... Ola Fosheim Grøstad via Digitalmars-d-learn
  • Re: Floating point types def... codephantom via Digitalmars-d-learn

Reply via email to