Why is this working?
#2

That's the difference between run time and compile time.
Like if you put a number itself 'array[10]', 10 is the size and index should be < 10; compiler gives you an error because 10 is a constant but if you use a variable, it can be anything, compiler cannot predict values, so you'll get run time in that case.

And "strcat" might have internal checks to avoid run time errors.

Edit: i misread strcat part, thats probably overwriting the EOS index of "array". Which i believe is a PAWN bug!
Reply


Messages In This Thread
Why is this working? - by Stinged - 03.01.2017, 07:52
Re: Why is this working? - by Gammix - 03.01.2017, 09:35
Re: Why is this working? - by PrO.GameR - 03.01.2017, 10:07
Re: Why is this working? - by SyS - 03.01.2017, 11:30
Re: Why is this working? - by Stinged - 03.01.2017, 11:32
Re: Why is this working? - by SyS - 03.01.2017, 11:39
Re: Why is this working? - by Spmn - 03.01.2017, 11:56
Re: Why is this working? - by Stinged - 03.01.2017, 14:14
Re: Why is this working? - by Vince - 03.01.2017, 18:02
Re: Why is this working? - by Stinged - 03.01.2017, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)