I heard about the limitation in VC ++ (not sure which version) about the number of nested operators if(somewhere in the stadium 300). The code was of the form:
if (a) ...
else if (b) ...
else if (c) ...
...
I was surprised to learn that there is a limit to this kind of thing and that the limit is so small. I am not looking for comments about coding practice and why to avoid it at all.
Here is a list of things that I could imagine could :
- The number of functions in the scope (global, class, or namespace).
- The number of expressions in a single expression (for example, compound legend).
- The number of cases in the switch.
- The number of parameters for the function.
- The number of classes in one hierarchy (either inheritance or containment).
/ ? (, )? - , , /?
EDIT: , if "". :
if (a) {
}
else {
if (b) {
}
else {
if (c) {
}
else {
}
}
}
user123456