Re: [AD] daft stuff !

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At 02:31 PM 13/09/2003 +1000, you wrote:
On 2003-09-12, aj <aj@xxxxxxxxxx> wrote:
> At 02:55 PM 12/09/2003 +1000, you wrote:
> >
> >Look again.  The answer's not far away (in the same file).
>
> ooh.. this is fun,  guessing!
>
> is it that   msg_call_proc  is a func* ?
> is it that  msg_suicide is not  really a UINT ?

No on both counts.

Hint #2:  Will this compile?

    int y = 42;

    int f(int x)
    {
        switch (x) {
            case y: return -1;
            default: return 0;
        }
    }



if  y  is const   it might :)
but then it might, only if it was C++ and strict ANSI was off.
ah! but its in the /src/win folder which means its only likely to get compiled by either mingw or msvc both of which *should* be able to interpret const int into a switch, but the int must be >0 so maybe it would be a warning.
anyway, i get the point.









Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/