pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
303 stars 70 forks source link

function name max length.. 32char? #665

Closed tars-c closed 3 years ago

tars-c commented 3 years ago

Compiler Version: v3.10.10 Linux

In the next fork, the length limit for function names was updated to be closer to unlimited.

Does the community compiler currently being used by sampctl support this feature? (pawncc v3.10.10, max length 32) Any thoughts on updating the next fork?

If the current community compiler doesn't have a limit on the length of function names, could you please leave a link to the relevant content to use the next feature?

I think the maximum length of a function name today is 32 characters too short. I hope there is no limit on function names

Y-Less commented 3 years ago

Right, do people just think that we never thought of this? That in 8 years no-one thought, oh lets just change this one simple define and solve all problems?

The problem isn't the compiler. The compiler can have the limit changed easily at any moment, no problem. The issue is the SA:MP server (yes, this isn't just used for SA:MP, but it somewhat is). That ALSO has the function limit, so the compiler needs to conform to that because we can't increase the limit in the runtime.