06.02.2014, 19:36
Is using a non-constant expression, a changing integer as a constant expression possible?
By default, this is impossible. Would return:
My question is using the size a NON-constant expression as a constant expression. Possible? If yes, how?
I am quite aware that it's mostly impossible, cause it'll get the string size declared over and over, but why it won't be possible?
pawn Код:
stock createStringSize(size=80)
{
new stringSize[size];
return sizeof(stringSize);
}
Код:
error 008: must be a constant expression; assumed zero
I am quite aware that it's mostly impossible, cause it'll get the string size declared over and over, but why it won't be possible?