1 matches bool, 2 matches long

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 25 19:17:56 PDT 2013


On 4/26/13, Ali Çehreli <acehreli at yahoo.com> wrote:
> Introduce a variable:
>
>    int i = 1;
>    foo(i);  // again, goes to long

An even better example:

enum e = 1;
void main()
{
    foo(e);  // bool
}

static e = 1;
void main()
{
    foo(e);  // long
}

I find this unacceptable.


More information about the Digitalmars-d mailing list