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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: should I be interested in ada? Date: 1999/02/19 Message-ID: <7akat7$2ek$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 446130953 References: <7a72e6$g55$1@probity.mcc.ac.uk> <36C93BB4.1429@ecs.soton.ac.uk> <7afc1o$3mi$2@plug.news.pipex.net> <7afttr$7v3$1@nnrp1.dejanews.com> <7aganu$qsc$1@plug.news.pipex.net> <7ai4rb$5vn$1@nnrp1.dejanews.com> <7aingo$orv$2@plug.news.pipex.net> <7ajl7i$e8v$1@nnrp1.dejanews.com> <7ajv17$mrf$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Feb 19 18:35:20 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-19T00:00:00+00:00 List-Id: In article <7ajv17$mrf$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: > Since Fortran's parallel loops are just loops with extra > semantics about what dependencies exist between > iterations, wouldn't it be possible to do the same thing > in Ada with new loop pragmas? (eg: prama > No_Loop_Carried_Dependencies (Loop_Label);) Would such a > scheme render the compiler non-conformant? Well you can always make arbitrary extensions by using the fiction that they are pragmas, and this particular form of the pragma is in fact quite a respectable one, but it is not what I would choose, I would prefer to have a clear statement that the branches can be done in parallel, not some rather peculiar statement with unfamiliar terminology from which this can be deduced! As for non-conformance, you can simply implement for all K in ... loop and that is still no problem as long as its recognition is controlled by a switch, e.g. something like --pedantic in GNU C. So there is never an issue with conformance in such extensions. Actually implementation defined pragmas are a rather pernicious form of language extension, that leaves ISO Ada even more susceptible to uncontrolled extension than in COBOL. In COBOL, you have to have a flag that restricts implementation defined extensions, but there is no such requirement for Ada with respect to pragmas. GNAT has added the Restrictions identifiers: pragma Restrictions (No_Implementation_Pragmas); pragma Restrictions (No_Implementation_Attributes); but unfortunately these identifiers are themselves implementation defined. It would be nice if every compiler would at least adopt these two restriction identifiers. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own