Menu

#1 Bug in Function

v1.0 (example)
closed
nobody
None
5
2024-11-13
2004-06-26
Anonymous
No

REM Bug in Function :-}

PRINT "Bug in Function :-}"
x = 2
y = 5

PRINT
power = PowerFunc(x, y)
PRINT
PRINT x; "^"; y; " ="; power
PRINT ":-{ ???"
END

FUNCTION PowerFunc(bVar, eVar)
PRINT " Arg1 ="; bVar; " Arg2 ="; eVar
resp = 1
FOR i = 1 TO eVar
LET resp = resp * bVar
PRINT " Arg1 ="; bVar; " Arg2 ="; eVar
NEXT i
PRINT " Arg1 ="; bVar; " Arg2 ="; eVar
TestFunc = resp
END FUNCTION

Discussion

  • Nobody/Anonymous

    Exactly as you say: there is a bug in your function -- but no bug in bwbasic...

     
  • Paul Edwards

    Paul Edwards - 2024-11-13
    • status: open --> closed
    • Group: --> v1.0 (example)
     
  • Paul Edwards

    Paul Edwards - 2024-11-13

    There was no counter-argument given to the claim that bwBASIC was not at fault here, so I am closing this. Raise a new bug and be more specific if you are still encountering an issue.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.