Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paint Pixels
#3
The problem you're seeing goes waaay back to version 2.0 of QB64.  

The issue is basically this one:

FUNCTION foo  (x)
   foo = 1
   IF x = 3 then foo = foo + 1
END FUNCTION

Now, the problem there is that prior to version 2.0, the above worked perfectly fine.  After the changes in version so, that foo I've highlighted is now a *recursive function* call.  It's going to error out on you.

You'll need to update your libraries to not do such things anymore, so they'll continue to compile and work on newer versions for you.  Example:

FUNCTION foo  (x)
   temp_foo = 1
   IF x = 3 then temp_foo = temp_foo + 1
foo = temp_foo
END FUNCTION

Function names *must* remain on the left side of the equal sign now, or else they're a recursive call to the function again.
Reply


Messages In This Thread
Paint Pixels - by SierraKen - 08-14-2024, 05:08 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 05:16 PM
RE: Paint Pixels - by SMcNeill - 08-14-2024, 05:50 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 07:19 PM
RE: Paint Pixels - by bplus - 08-14-2024, 07:57 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 09:16 PM
RE: Paint Pixels - by bplus - 08-14-2024, 10:24 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 10:32 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 10:41 PM
RE: Paint Pixels - by SierraKen - 08-14-2024, 10:46 PM
RE: Paint Pixels - by SierraKen - 08-15-2024, 05:13 AM
RE: Paint Pixels - by SierraKen - 08-15-2024, 06:09 AM
RE: Paint Pixels - by JRace - 08-15-2024, 07:39 AM
RE: Paint Pixels - by SierraKen - 08-15-2024, 05:15 PM
RE: Paint Pixels - by SierraKen - 08-15-2024, 05:41 PM
RE: Paint Pixels - by JRace - 08-15-2024, 06:59 PM
RE: Paint Pixels - by grymmjack - 08-20-2024, 09:18 PM
RE: Paint Pixels - by SierraKen - 08-20-2024, 11:11 PM



Users browsing this thread: 5 Guest(s)