GPC Exit Bug_(re)

Sun, 1 Jun 1997 19:44:46 +0200 (MET DST)


Hallo Bernhard, hello everybody!

According to Bernhard Tschirren:
> 
>     Function ThisIsABug : Integer;
>         Begin
>             ThisIsABug := 0;
>             Exit;
> 
>             ThisIsABug := 100;
>         End;
> 
>     Begin
>         WriteLn(ThisIsABug);
>     End.
> 
> [...]
>
> The output is not 0 as expected! It not even 100!!! Looking at the ASM
> produced, we can see its one of those nasties left behind by C (RETURN).

Indeed!

It will be fixed in the next release (perhaps this evening).

> Im using GPC 2.0 (alpha 9704?? - Im not sure about the ??, but it might be
> 20) with DJGPP (2.01).

It holds for any version of GPC which understands `Exit'.

> Thank you (EVERYBODY) for creating the greatest development platform in the
> world!!

Thank you!  (-:
Be invited to join us in improving GPC.

Thanks for reporting the bug!  Such feedback is very important - for
testing GPC as well as for motivating us to go on. :-)

Tschuess

    Peter

  Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
 maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es