Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
warning: [W180] Unreachable code problem?
#2
(09-10-2021, 06:17 PM)maeloterkim Wrote: Hi  if i compile this, says

warning: [W180] Unreachable code

but i don't know why


the version is  zxbasic-1.15.2





Code:
' EXAMPE UNRECHABLE CODE

declare sub mySub()

Dim myNumber As uByte
cls

myBucle:
    for myNumber = 0 to 7          
        mySub()                  
    next myNumber
    goto myBucle

sub mySub()

end sub

Looks like there is escape from the loop? 
and an empty mySub() ?

Thanks
Reply


Messages In This Thread
RE: warning: [W180] Unreachable code problem? - by RandomiserUsr - 09-12-2021, 09:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)