TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: MIKE ROSS
from: Jasen Betts
date: 2003-06-15 20:36:20
subject: FSM

Hi MIKE.

14-Jun-03 16:21:36, MIKE ROSS wrote to Jasen Betts


 MR> "Jasen Betts" wrote to "MIKE ROSS" (13 Jun 03 
07:09:14) --- on
 MR> the topic of "FSM"

 JB>> you're mixing floats and integers there and it leads to
 JB>> unpredictable behavior

 JB>> try this

 JB>> for x= 1 to 60: call delay(1):?".";: next

 JB>> expect to wait much less than 1 minute for it complete!

 MR> Then call it with a delay of 60 instead of calling it 60 times...
 MR> DOH!

 :)

 MR> I didn't write the routine, but thought it had the right
 MR> components.

it looked good but when i tested it  it could started coomplete the 1 second delay
if it's was tetered with a timer value ending in exatly .5 and it alway exits just
on when timer passes or matches the half second...

it took me a while to pin down that behavior and expliain it....

 -=> Bye <=-

---
* Origin: I smell a rat. Did you bake it or fry it? (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.