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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,49187406979ac933 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-14 13:36:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Operator question. Date: 14 Feb 2002 16:26:27 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <2vRa8.11975$kt5.28657@rwcrnsc52.ops.asp.att.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1013722278 4147 128.183.220.71 (14 Feb 2002 21:31:17 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 14 Feb 2002 21:31:17 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:20026 Date: 2002-02-14T21:31:17+00:00 List-Id: Wannabe h4x0r writes: > Alright, forgive me if this question seems dumb. I cant beleive I havent > asked it before now.(or maybe I have and I just forgot.) > > What does the operator '=>' mean? I've been looking through my book > "Programming in Ada95" but I cant seem to find it anywhere. Strictly speaking, "=>" is not an operator; it does not specify an action performed on parameters, like "+" and "*" do. This may seem like a nit, but it is very helpful to use correct terminology. LRM 2.2 (14) says "=>" is called "arrow". It is used for named association; it "associates" a parameter name with the actual value in a subprogram call. For example: procedure Foo (First, Last : in Integer); Foo (First => 1, Last => 2); This means the parameter 'First' gets the value 1, and 'Last' gets the value 2. People often read "=>" as "gets". Named association is also used in aggregates for records and arrays. -- -- Stephe