* Compiler used was the latest stable 1.8 build.
I was messing around a bit and i tried using typedefs to create arbitrary types (i found later you can only create typenames for functions)
Anyway, this stuff happened:
Code:
enum {
Chihuahua,
Bulldog
} Dog;
public void OnPluginStart() {
Dog = 42;
Dog = true;
Dog = Bulldog;
}
It gives me no errors, what's going on? I think i'm creating an anonymous enum (fair enough) but what is "Dog", is it a variable? Why can i do whatever i want with it without any errors?
Also, why am i allowed to do this without any errors, perhaps some leftover deprecated pawn code? Methodmap prototype?
Code:
struct Data {
public int some_int; // It wants the public keyword, otherwise it gets mad.
public char name[32];
}
public void OnPluginStart() {
Data data;
//data.some_int // No errors up til' this point, i'm guessing i'm not allowed to do this because the '.' operator was only implemented for methodmaps.
}
__________________