Does anyone happen to know what the maximum length of a method name is in your programming language of choice? I was going to make this a C# specific question, but I think it would be nice to know across the spectrum.
What are the factors involved as well:
- Does the language specification limit this?
- What does the compiler limit it to?
- Is it different on 32bit vs 64bit machines?
in Progress (OpenEdge) the limit is 32 char.
in C# is 511 characters length.
In D I don't know this to be the case but I suspect that it is something insane like >100MB. It might be an out-of-memory thing. This is based on knowing that I and other people have run into object file format limitation of about 11kB for symbol names and that this has been fixed.
PHP seems to be limited only by the script's memory limit.
With 128Mb I was able to create a class (and method) with 4 million characters.