[Issue 6557] Inplace enum literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 27 07:15:31 PDT 2011


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



--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-27 07:15:29 PDT ---
My thought case is following code.

void foo()(int n){} // 1
void foo()(enum {a, b} arg) {} // 2

void main() {
  int a;
  foo(a);  // 1 or 2 ?
}

To determine the signature of foo, 'a' is judged as integer typed variable, and
1st foo overload is selected. 2nd version of foo is never selected.
And this is natural behavior guided from the current specification.

But this enhancement is require to determine foo's signature *before* argument
types. This is a serious conflict.

-- 
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