From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: defining functions
Date: 1999/11/24
Date: 1999-11-24T00:00:00+00:00 [thread overview]
Message-ID: <383c0024_1@news1.prserv.net> (raw)
In-Reply-To: 81gthb$kej$1@bunyip.cc.uq.edu.au
In article <81gthb$kej$1@bunyip.cc.uq.edu.au> , "Riyaz Mansoor"
<s800032@student.uq.edu.au> 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.
<http://www.talkorigins.org/origins/faqs.html>
next prev parent reply other threads:[~1999-11-24 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-25 0:00 defining functions Riyaz Mansoor
1999-11-24 0:00 ` Ted Dennison
1999-11-25 0:00 ` Riyaz Mansoor
1999-11-24 0:00 ` Matthew Heaney [this message]
1999-11-24 0:00 ` Gautier
1999-11-24 0:00 ` Lutz Donnerhacke
1999-11-25 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox