Compiler bug?
#1

Compiles:
pawn Код:
stock Test(Text:a, tag = tagof a) {
    switch(tag) {
        case (0):
            printf("SRSLY");   
        case ( tagof( Text: ) ):
            printf("SRSLY");       
        default:
            printf("SRSLY");
    }
    return 1;
}
Crashes:
pawn Код:
stock Test(Text:a, tag = tagof a) {
    switch(tag) {
        case (0):
        {
            printf("SRSLY");
        }          
        case ( tagof( Text: ) ):
        {
            printf("SRSLY");       
        }          
        default:
        {
            printf("SRSLY");
        }
    }
    return 1;
}
Any ideas?
Reply
#2

I have no idea why, but why even care? I mean, the above code is just as tidy (imo) and it works - I don't really see the big deal.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)