Using a non-constant expression as a constant expression?
#1

Is using a non-constant expression, a changing integer as a constant expression possible?
pawn Код:
stock createStringSize(size=80)
{
   new stringSize[size];
   return sizeof(stringSize);
}
By default, this is impossible. Would return:
Код:
error 008: must be a constant expression; assumed zero
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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)