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,9b7470c93e8c4387,start X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: use of Pure Date: 1997/05/24 Message-ID: #1/1 X-Deja-AN: 243586588 Organization: New York University Newsgroups: comp.lang.ada Date: 1997-05-24T00:00:00+00:00 List-Id: Matthew said <> The pragma Pure is required of any Ada 95 compiler. It specifies that all subprograms in a unit are side effect free (or at least can be regarded as being so by the compiler). What GNAT adds is the pragma Pure_Function, that can be applied to individual functions with the same effect. One use of functions being pure is that GNAT allows them without restriction in address clauses.