Question about enums
#10

There get replaced from the pre-compiler to constants..for example:

PHP код:
//Before pre-compiler
enum x
{
    
a,
    
b
};
new 
test[x];
test[a] = 5;
test[b] = 6;
//After pre-compiler
new test[2];
test[0] = 5;
test[1] = 6
Reply


Messages In This Thread
Question about enums - by NeXoR - 20.11.2016, 05:06
Re: Question about enums - by AndySedeyn - 20.11.2016, 08:02
Re: Question about enums - by Nero_3D - 20.11.2016, 10:21
Re: Question about enums - by BiosMarcel - 20.11.2016, 10:24
Re: Question about enums - by SickAttack - 20.11.2016, 10:40
[No subject] - by BiosMarcel - 20.11.2016, 10:48
Re: Question about enums - by SickAttack - 20.11.2016, 11:04
Re: Question about enums - by BiosMarcel - 20.11.2016, 11:06
Re: Question about enums - by SyS - 20.11.2016, 12:02
Re: Question about enums - by Kaliber - 20.11.2016, 12:06

Forum Jump:


Users browsing this thread: 4 Guest(s)