Variable conformant arrays, and the price of fish..._(re)
Tue, 19 Aug 1997 00:02:52 +0200 (MEST)
Hello!
According to Michael Meeks:
>
> PROCEDURE print_str (name: PACKED ARRAY [lo..hi: integer] OF Char) ; {a}
> [...]
> It compiles to object fine with the {b} labeled code in, but the
> {a} labeled code causes a crash :
This is a bug in gpc-2.0 or below which has vanished in recent beta
versions. To get a GPC without that bug, download gpc-970714.tar.gz
from ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/.
> Is this perhaps one section of the ISO 10206 spec. that isn't
> implemented yet ? or am I doing something extremely daft :-)
It's part of level 1 of ISO-7185 Standard Pascal.
> TYPE
> ulong = 0..16#FFFFFFFF ;
Also, gpc-970714 can compils this. In addition, it has an extension
type `Cardinal' or `Word' (two names) which has the same size as `Integer'
but is unsigned. As another extension, you can write `Cardinal ( 32 )' to
be sure to get an unsigned integer type of 32 bits width. (`Integer' may
actually have 64 bits or whatever on some machines.)
> Thanks in advance for any help, its a great project, keep up the
> good work.
Thank you as well for your interest. Yes, we'll try to keep it up. :-)
If you want to contribute to the project, too: You seem to have some
experience with Extended Pascal. When we will face 100% compliance to
Extended Pascal in the future we will need some test programs urgently,
and useful and/or entertaining example programs and documentation are
very welcome, too.
Hope this helps,
Peter
PS: What has all this to do with the price of fish?
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 [970714] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.NO-SPAM-PLEASE.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es