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,7ccbf31c901dc851,start X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: defining functions Date: 1999/11/24 Message-ID: <383c0024_1@news1.prserv.net>#1/1 X-Deja-AN: 552533322 Content-transfer-encoding: 7bit References: <81gthb$kej$1@bunyip.cc.uq.edu.au> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 24 Nov 1999 15:11:32 GMT, 32.101.8.188 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-24T00:00:00+00:00 List-Id: In article <81gthb$kej$1@bunyip.cc.uq.edu.au> , "Riyaz Mansoor" wrote: > when i try to define a function as below my compiler tells me the name is > invalid. when i change the name to "=" it works fine. is this a compiler > specific problem? or ada restriction? This is not an Ada "restriction." This is an Ada *feature*. > function "==" (Stack1, Stack2 : in Stack) return Boolean; Wrong. Do this instead: function "=" (L, R : Stack) return Boolean; > if this is a compiler problem, i'm using AdaGIDE (GNAT 3.12), is there > anyway i can tell the compiler to accept "==" as a valid name? No. Look up the list of valid operators in the RM. > (i find the single equal sign really irritating!!!) I'm sorry to hear that. -- Get the FAQs about evolution and creationism.