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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.129.196 with SMTP id p4mr5017410qas.6.1371365669892; Sat, 15 Jun 2013 23:54:29 -0700 (PDT) X-Received: by 10.49.63.195 with SMTP id i3mr209179qes.29.1371365669878; Sat, 15 Jun 2013 23:54:29 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!bw2no1854970qab.0!news-out.google.com!y6ni2993qax.0!nntp.google.com!j2no356297qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 15 Jun 2013 23:54:29 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.113.176.20; posting-account=MynaUQoAAABLIabAWk436qZGCp4jiL1_ NNTP-Posting-Host: 68.113.176.20 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5788c60d-fb8c-4058-9ae9-414dd77a3dc4@googlegroups.com> Subject: Beginner issue.. From: Marcus F Injection-Date: Sun, 16 Jun 2013 06:54:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 1750 Xref: number.nntp.dca.giganews.com comp.lang.ada:181859 Date: 2013-06-15T23:54:29-07:00 List-Id: Hi! I'm Marcus, I'm completely new to ADA but not to programming. I'm looking at a simple tutorial guide to pick up some basics of ADA, but I ran into an issue that I don't understand. Here's the trivial example I followed: with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Compute is procedure Double(Item : in out Integer) is begin -- procedure Double. Item := Item * 2; end Double; X : Integer := 1; -- Local variable X of type Integer. begin -- procedure Compute loop Put(X); New_Line; Double(X); end loop; end Compute; Now, I expect X to double once per loop, but when I build and run, I just get 0's scrolling down my screen. Could someone help out a newbie?