[Issue 11343] [2.064 beta] Error: multiple field initialization

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 03:00:50 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11343



--- Comment #14 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-30 03:00:47 PDT ---
(In reply to comment #12)
> Who?

Embedded system programmers, for example.

---

We can add some acceptable cases certainly. For example, by the following rule:
"If the static array field is initialized
  1. with different compile-time constant indices, and
  2. each initializing expressions does not have overlapping
     with each other over the whole control-flow paths
     in the constructor"
the bearophile's case may be allowed.

But, it's very complex and heuristic rule, and will covers just only a few
cases.
We must reject heuristic rule, because it is hard to maintain and verify
language semantics.

That's the matter of cost-benefit ratio.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list