Re: Star Trek by Krishna Myneni
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Star Trek by Krishna Myneni         

Group: comp.lang.forth · Group Profile
Author: Krishna Myneni
Date: Sep 19, 2008 20:09

Doug Hoffman wrote:
> This might also be a problem:
>
>
> fvariable x
> ^^^^^^^^^^^
>
>
> : FirePhasers ( -- )
>
> ...
> cr ." NUMBER OF UNITS TO FIRE " #in X !
> ^^^
> e @ X @ - 0 >=
> UNTIL
>
> X @ 0> IF
> X @ negate e +!
> d{ 7 } f@ f0< IF X @ s>f ran0 f* fround>s X ! THEN
> X @ k3 @ / h1 ! \ distribute phaser energy among klingons present
>
> ( there may be more uses of @ and ! with x )
>
>
>
> -Doug

This is not likely to be a problem as "x" is probably a temporary fvariable, and
use of "@" and "!" will not cause memory problems. The problem with the variable
"d1" from your earlier message is serious. I'm looking back through the original
BASIC sphagetti to find the source of that problem. Thanks!

Krishna
no comments
diggit! del.icio.us! reddit!