Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
procedure bug ???
#1
Hi everyone

Because there was a bug with function i got curious and found another possible bug in Naalaa 6 (windows version). [Image: bug.png][Image: wink.png]
So began to test a simple procedure ... and program worked without any errors. Say what ?[Image: smile.png]


Code:
visible:
c

hidden:
a=1
b=2


set color 0,0,0
cls

proc addnum a,b

set color 255,255,255
wln a,"+",b,"=",c


wln "press space to exit"
wait keydown
end

procedure addnum(a,b)
  c=a+b
  'what is this ? no error ? endfunc in procedure ?
endfunc
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)