Problems with enumerated strings
#9

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Thanks for the explanation ******, I wasn't aware that is how enumeration was handled, now it's making a lot more sense, I should've looked into this before replying with invalid information. Apologies for that RSX.
Then I can just give additional note, that you can use for example :
vector[b][23] which is then actually vector[b+23] which in my opinion as in C then becomes *(vector+b+23) And this function is too pretty useful I guess, as you could make something like this :

pawn Код:
enum _:Coords{
    Float:pX, Float:pY, Float:pZ, Float:rX, Float:rY, Float:rZ
};
enum _:ABC{
    PosRot[Coords],
    a[32],
    b[32]
};

main(){
    new Complex[ABC];
    Complex[PosRot][pY]=10.0;
}
Reply


Messages In This Thread
Problems with enumerated strings - by RSX - 14.01.2011, 21:49
Re: Problems with enumerated strings - by Retardedwolf - 14.01.2011, 21:52
Re: Problems with enumerated strings - by DeadAhead - 14.01.2011, 21:54
Re: Problems with enumerated strings - by JaTochNietDan - 14.01.2011, 21:57
Re: Problems with enumerated strings - by RSX - 14.01.2011, 21:57
Re: Problems with enumerated strings - by JaTochNietDan - 14.01.2011, 22:11
Re: Problems with enumerated strings - by RSX - 14.01.2011, 22:40
Re: Problems with enumerated strings - by JaTochNietDan - 15.01.2011, 03:30
Re: Problems with enumerated strings - by RSX - 15.01.2011, 14:34
Re: Problems with enumerated strings - by Goldkiller - 16.01.2011, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)