From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Bob Butler Newsgroups: comp.lang.ada Subject: Re: Object Pascal vs Ada -- which is better for a hobbyist? Date: Thu, 17 Mar 2016 07:59:46 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <87zityce4n.fsf@ludovic-brenta.org> NNTP-Posting-Host: iKbagjVZRWovxdnuhgY9Hw.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:29816 Date: 2016-03-17T07:59:46+00:00 List-Id: On 2016-03-16, Ludovic Brenta wrote: > Bob Butler writes on comp.lang.ada: >> I am not sure if that is true. It could be FreePascal does support the >> full standard (and there are indeed ISO standards to follow) but also >> OO and GUI addons. I think a lot of useful code could be written to >> the standard. It's just that many people want the OO support and the >> GUI stuff so they tend towards specific implementations. I think it's >> ill advised for businesses but indeed there are still some using >> Delphi believe it or not. Most of the Pascal written today outside >> Delphi is hobbyist stuff. FPC is actually a very nice >> implementation. It's not portable because nothing else is left, with >> or without a standard or two. > > The fact that FreePascal supports some ISO or standards is relevant and > useful *if* it can reject non-compliant programs. Oh really? You can't tell by gcc. What incantation do you use to even get all the warnings? If you ask they will tell you it's not the compiler's job to catch incorrect code. If you give it correct code it will probably produce a representative executable. If not, all bets are off. I already explained some possible reasons for FPC's non-portability. I think my paragraph above explains things clearly enough and I don't agree with your statement here. It is valuable to have a toolchain that supports standards whether or not it also supports a superset. If it can warn on extensions so much the better. If not, it's more than worth price paid. > But in its list of > compiler options I see only: > > -M Set language mode to > -Mfpc Free Pascal dialect (default) > -Mobjfpc FPC mode with Object Pascal support > -Mdelphi Delphi 7 compatibility mode > -Mtp TP/BP 7.0 compatibility mode > -Mmacpas Macintosh Pascal dialects compatibility mode > > and no ISO 7185 or ISO 10206. You could ask the right people if you're interested enough. If not, not. Bob