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]
Hi!
I have read it's possible to call gcc functions from a gpc program or unit adding ";C" to functions' declaration. Is it also possible to call or use gpc functions, or generally gpc code, from a gcc program?
Does gpc support operator overloading?
Thanks.
bye, Fausto.
Reply addresses: fausty@itb.it (primary - local provider) fausty@peacelink.it (gateway - please no files here) Homepage: www.itb.it/users/fausty/welcome.html