Sign in to follow this  

operation inside operations

Recommended Posts

for example can i do this
what are the limits in operations inside operations, i mean how many operations inside operations until it stops working. Edited by lomateron

Share this post

Link to post
Share on other sites
The answer that is of benefit to you is that there is no limit.
Don’t think too hard about what follows.

The actual answer is that it depends on how the compiler was built. If it traverses the syntax tree recursively, the limit could be around 400,000 or so depending on the size of the stack of the compiler’s traversal thread.
If the compiler uses an explicit stack, the limit would be around 50,000,000 for x86 machines and virtually no limit for x64 machines.

Don’t think too hard about my secondary answer either because 50,000,000 implies operations inside operations only on one side. Meaning only the ride-side operation is nested this deep. If the left is nested only 3 deep, it would not mean you approach the limit by 3.

So, again, for all intents and purposes, there is no limit.

L. Spiro Edited by L. Spiro

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this