Share

Bywater BASIC Interpreter

Tracker: Bugs

5 Bug in Function - ID: 980088
Last Update: Comment added ( nobody )

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


Nobody/Anonymous ( nobody ) - 2004-06-26 00:45

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-09-03 21:42
Sender: nobody

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


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.