Is there a limit on the length of a static variable name?

I haven't found any documentation on the limit of the variable name length, did I miss it somewhere? (would not be the first time :wink:)

There is no hard coded limit, but common sense should be applied. The longer the name is, the longer it takes to access it because each time it is accessed a string comparison needs to be done against name. Unlike regular variables, static variables are looked up each time they are accessed.

1 Like

Thanks Tomasz, that makes sense.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.