Some bug reports_(re)

Tue, 25 Feb 1997 21:31:50 +0100 (MET)


Hallo, Frank; hello, everybody!

According to Frank Heckenbach:
> 1.
> The output of a compiler program is not redirectable (neither as stdout,
> nor stderr).

Hmmm ... I am redirecting stderr all the time ... what OS are you using?
With DJGPP and the BPcompat package, redirection is turned off when
DirectVideo is `true'.  (And redirection is not easy with DJGPP anyway.)
It works fine on my Linux box.

> 2.
> Writeln('a','':5,'b');
> I think it should write "a     b", but it just writes "ab".

Okay.  I am adding it to my bug list.  Thanks.

> 3.
> My standard way for "variable size arrays" in BP doesn't work in gpc:
> 
> PROGRAM t;
> 
> CONST MaxVar=$FFF0;
> 
> TYPE
>   X=Integer;
> 
>   XArray=ARRAY[1..MaxVar DIV SizeOf(X)] OF X; {}
> 
> BEGIN
> END.
> 
> [...]

Okay.  I am adding it to my bug list.  Thanks.  :-)

Workaround:  GPC has no problems to deal with structures above 65520 bytes.
(It has a 4GB limit instead.)  So you can just write:

    Const
      MaxVar = 1000000;  (* large random number *)

    Type
      X = Integer;
      XArray = array [ 1..MaxVar ] of X;

> 4.
> [...]

Okay.  I am ... etc. :-)

> (I could provide all the register values if necessary.)

That's not necessary.  I have the example program, so I will be able to
reproduce the bug.  (I hope at least.)

Also thanks for the detailed description in which situations the bug
occurs. :-)

> 5.
(See above.:-)

> 6.
> Last but not least:
> Is there anything like TP's Exit (return from current procedure/function)?
> I couldn't find it in the docs.

Return.

But I am planning to support `Exit' as an alternative to it.

    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 - 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