lotus



previous page: C12) Tracing the work of compiler?
  
page up: BETA Programming Language FAQ
  
next page: C14.1) New features in version 5.3 of the Compiler

C13) Problem with floating point expressions in connection with repetitions




Description

This article is from the FAQ, by with numerous contributions by others.

C13) Problem with floating point expressions in connection with repetitions

The compiler does not generate correct code when floating point expressions
are used in the calculation of repetition ranges as in:

      R: [FR1] ...
   do ...
      FR2->R.extend
      FR3->R.new

where FR1, FR2 and FR3 are expressions yielding a floating point value. The
compiler should convert these floating point values into integer values, but
fails in doing so.

You can get around the error by explicitly converting the expression to an
integer value. If "I" is an integer variable, then the following will work:

      R: [FR1->I] ...
   do ...
      FR2->I->R.extend
      FR3->I->R.new

This problem have been fixed in version v5.1 of the compiler.

 

Continue to:















TOP
previous page: C12) Tracing the work of compiler?
  
page up: BETA Programming Language FAQ
  
next page: C14.1) New features in version 5.3 of the Compiler