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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 25 Oct 2014 23:50:27 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: confusion about message passing between the tasks Date: Sun, 26 Oct 2014 00:50:35 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <8578e593-1a64-4d0f-9033-f20eef90c731@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.79.218.175 X-Trace: sv3-kJNH4z0t1Aiq6ADGdrSAbrDW8w8/BLQo9fCRnmczBI5hmpibVCig1VYZ1NbT4c/ZY+2FNilgmUgxu7i!VnmgVgk43Eqpz9N0oGDmb6bNBF4BZ41eR2hNmEe1apueXNUB39+XhrrvTYrPCc5TbKf+23/JZMwC!sD+rT5ta5u6VRDUyBgMHAD0wc6J/ X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2075 Xref: news.eternal-september.org comp.lang.ada:22740 Date: 2014-10-26T00:50:35-04:00 List-Id: On Sat, 25 Oct 2014 16:26:42 -0700 (PDT), compguy45@gmail.com declaimed the following: > Can anyone tell me why i am getting zero printed to the screen even though i am passing 5? > 17 > 18 task body Counter_Task is > 19 V : Integer := 0; > 20 begin > 21 loop > 22 select > 23 accept Get (Value : out Integer) do > 24 put("Value of parametar passed in is ");put(Value); > --Why am i getting zero printed??? Maybe because you declared it to be an OUTPUT; nothing is passed in (I'm surprised that Ada didn't complain about "used before assignment") -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/