hello,
i forward you the following question from the fernuni-hagen-pascalnewsgroup:
Carsten Simon wrote:
Hallo,
ich bin gerade dabei einige Beispiele nachzuprogrammieren (Ãbung macht den Meister...). Ich arbeite unter LINUX mit GNU-Pascal für LINUX. Bisher hatte ich eigentlich keine groÃen Probleme mit dem Compiler (Aufruf: gpc --standard-pascal --pedantic -g -o). Nun habe ich aber ein Feld mit dem component type boolean deklariert. Bei der späteren Zuweisung eines boolean-Wertes zu einer indizierten Variablen (wie z.B. Kurs 1612 Bsp. 4.2.1.7) meckert mich der Compiler wie folgt an: 'cannot convert to a boolean type'. Den gleichen Quellcode mit dem SPAR-Compiler auf bonsai - kein Problem.
Ist das ein prinzipielles GNU-Pascal-Problem, mit dem ich mich abfinden muÃ, oder gibt es da einen Trick?
michael
Hallo, Michael und Carsten!
Although a large percentage of the GNU Pascal members speaks German, this is an international mailing list in English, so I answer in English.
Carsten Simon wrote:
(Aufruf: gpc --standard-pascal --pedantic -g -o).
This is a very restrictive command line because it only accepts everything understood by _every_ compiler we know about ...
Nun habe ich aber ein Feld mit dem component type boolean deklariert. Bei der späteren Zuweisung eines boolean-Wertes zu einer indizierten Variablen (wie z.B. Kurs 1612 Bsp. 4.2.1.7) meckert mich der Compiler wie folgt an: 'cannot convert to a boolean type'. Den gleichen Quellcode mit dem SPAR-Compiler auf bonsai - kein Problem.
This should not be a problem in GNU Pascal. Please send us an example program - as short as possible - that reproduces the problem. Maybe you have found a compiler bug, but since we are all using arrays of Boolean all the time, it would be somewhat strange.
Also please say which version of GPC you are using. We often get bug reports about the hopelessly outdated version 2.0 ...
Bis dann,
Peter
Peter Gerwinski wrote:
Also please say which version of GPC you are using. We often get bug reports about the hopelessly outdated version 2.0 ...
maybe, that is the problem. i just tested some code with my gpc and it worked without problems. i use gpc-19990118. maybe carsten uses 2.0
wouldn't it be a good idea, to ask some of this companies as suse, to give their customers the gpc-19990118? and why don't want it to make an official release? so much bugs? i suppose, there has been so much improvement since 2.0 ...
michael
michael paap wrote:
wouldn't it be a good idea, to ask some of this companies as suse, to give their customers the gpc-19990118?
I already did so at least four times. The last time (Feb 1999, IIRC) I really convinced them that gpc-2.0 is obsolete and gpc-19990118 is current - and they included gpc-1997something into SuSE Linux 6.1.
No further comment necessary, I think. :-(
and why don't want it to make an official release? so much bugs? i suppose, there has been so much improvement since 2.0 ...
Development on GPC is still going on, so this is probably not a good moment for a release.
We hope that we will be able to do the next official release with GPC (gpc-2.1) being fully integrated into gcc-3.0.
Peter