Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion Limit
#2
BAM (well, javascript) chokes at just a little over 526,200.  

BAM version of the test program:

Code: (Select All)
Sub howRecursive (i As long)
    If i < 0 Then Print "_Integer64 turned negative.": End
    if i mod 300 = 0 then Print i: _display
    howRecursive(i + 1)
End Sub

howRecursive(1)

I wanted to see how QBJS handles my BAM program (I was expecting same results), but QBJS is giving the error:

Code: (Select All)
WARN : 4 : Missing or unsupported method: 'howRecursive(i' - ignoring line
ERROR : 0 :
Unexpected token '}'
SyntaxError: Unexpected token '}'
    at new AsyncFunction ()
    at runProgram (https://qbjs.org/qbjs-ide.js:234:22)
Reply


Messages In This Thread
Recursion Limit - by bplus - 05-28-2023, 02:04 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 02:39 PM
RE: Recursion Limit - by dbox - 05-28-2023, 03:55 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 03:06 PM
RE: Recursion Limit - by mnrvovrfc - 05-28-2023, 03:37 PM
RE: Recursion Limit - by bplus - 05-28-2023, 06:10 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 06:59 PM
RE: Recursion Limit - by Jack - 05-28-2023, 06:30 PM
RE: Recursion Limit - by bplus - 05-28-2023, 10:30 PM
RE: Recursion Limit - by bplus - 05-28-2023, 11:14 PM
RE: Recursion Limit - by dbox - 05-29-2023, 12:04 AM
RE: Recursion Limit - by pmackay - 10-17-2025, 11:12 AM
RE: Recursion Limit - by pmackay - 10-17-2025, 06:59 PM
RE: Recursion Limit - by bplus - 10-17-2025, 12:10 PM
RE: Recursion Limit - by a740g - 10-17-2025, 07:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 719 06-21-2025, 11:21 PM
Last Post: SMcNeill
  Recursion limit? TerryRitchie 5 1,168 03-12-2024, 02:17 PM
Last Post: GareBear
  Stack size limit for If/Then statements? JamesAlexander 20 3,641 01-31-2024, 06:21 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)