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,LOTS_OF_MONEY 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 08:55:39 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <2vRa8.11975$kt5.28657@rwcrnsc52.ops.asp.att.net> Subject: Re: Operator question. Date: Thu, 14 Feb 2002 16:55:07 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: ed125012.sd.edinbr.gmav.gecm.com Message-ID: <3c6bebdf@pull.gecm.com> X-Trace: 14 Feb 2002 16:54:55 GMT, ed125012.sd.edinbr.gmav.gecm.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!ed125012.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:20012 Date: 2002-02-14T16:55:07+00:00 List-Id: "Wannabe h4x0r" wrote in message news:2vRa8.11975$kt5.28657@rwcrnsc52.ops.asp.att.net... > 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. > > I see it everywhere in Ada code. Maybe I'm just a slow learner. Me too ;-) '=>' is use in a number of places, but really just to get a nice readable syntax - it has no hidden value itself: 1. In named association e.g. the procedure call: Foo (Value => Bar); 'Value' is the 'formal parameter name', 'Bar' is the 'actual parameter' 2. In case statements: case Value is when Foo => ... end case; 3. In array assignment: Value : Array_Type := (1 .. 10 => 0); 4. In exception handlers: begin ... exception when My_Exception => ... end; There are probably others which I can't think of off the top of my head. Hope this helps.