On Wednesday, 15 November 2017 at 04:30:32 UTC, Walter Bright wrote:

I just tried:

  import core.stdc.stdio;
  void foo(char c) { printf("char\n"); }
  void foo(int c) { printf("int\n"); }
  void main() {
    enum int e = 1;
    foo(e);
    foo(1);
    foo('c');
  }

and it prints:

  int
  int
  char

The code posted was incorrect. See http://forum.dlang.org/post/mailman.154.1510704335.9493.digitalmar...@puremagic.com


Reply via email to