Re: [fpc-pascal] real numbers infinity

2006-04-12 Thread Jonas Maebe


On 11 apr 2006, at 01:45, Dimitrios Apostolou wrote:

when a real number overflows the program halts with EInvalidOp  
error. How can I make the program behave the more standard way,  
where the variable gets the value "inf" and execution continues  
normally?


I'm not sure if overflow immediately results in infinity, I think  
first you get some denormalss. There's also nothing particularly  
standard about whether or not an exception is thrown when you have an  
FPU overflow, since all common FPU's I know about support both.


Anyway, you can mask overflow and related exceptions by doing this:

uses math;

...

SetExceptionMask([exDenormalized,exOverflow,exPrecision]);


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] SVN release #3198 building by 2.0.2 - crash

2006-04-12 Thread Sasa Zeman
This bug report cannot be submit.
Log of SVN release #3198 building by 2.0.2:

C:/pp/bin/i386-Win32/gmkdir.exe -p units/i386-win32
c:/lazarus/source/fpc/2.1/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n -Fuc:/l
azar
us/source/fpc/2.1/rtl/units/i386-win32 -FE. -FUunits/i386-win32 -di386 -dREL
EASE
 buildjwa.pp
jwaadstlb.pas(6265,50) Fatal: Internal error 200108291
Fatal: Compilation aborted
make[5]: *** [buildjwa.ppu] Error 1
make[5]: Leaving directory
`c:/lazarus/source/fpc/2.1/packages/extra/winunits'
make[4]: *** [fpc_smart] Error 2
make[4]: Leaving directory
`c:/lazarus/source/fpc/2.1/packages/extra/winunits'
make[3]: *** [winunits_smart] Error 2
make[3]: Leaving directory `c:/lazarus/source/fpc/2.1/packages/extra'
make[2]: *** [extra_smart] Error 2
make[2]: Leaving directory `c:/lazarus/source/fpc/2.1/packages'
make[1]: *** [packages_extra_smart] Error 2
make[1]: Leaving directory `c:/lazarus/source/fpc/2.1'
make: *** [build-stamp.i386-win32] Error 2


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SVN release #3198 building by 2.0.2 - crash

2006-04-12 Thread Jonas Maebe


On 12 apr 2006, at 19:00, Sasa Zeman wrote:


This bug report cannot be submit.


It's not necessary, there are already two cases in the test suite  
that show this bug.



Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal