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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8002154d2966e1a1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-03 10:17:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail From: "Roger" Newsgroups: comp.lang.ada Subject: Local vs global variables in ADA X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <5Ldx9.3695$151.38236@weber.videotron.net> Date: Sun, 3 Nov 2002 13:17:38 -0500 NNTP-Posting-Host: 24.200.42.114 X-Complaints-To: abuse@videotron.ca X-Trace: weber.videotron.net 1036347457 24.200.42.114 (Sun, 03 Nov 2002 13:17:37 EST) NNTP-Posting-Date: Sun, 03 Nov 2002 13:17:37 EST Xref: archiver1.google.com comp.lang.ada:30321 Date: 2002-11-03T13:17:38-05:00 List-Id: Yes I'm an Ada newbie and have a questions about local and global variables. When exactly is a variable said to be global? for example I have this code --main procedure Procedure Main Is --If I declare a variable here will it be considered as --global to the sub procedures? --sub procedure Procedure Sub Begin End Sub; Begin --If I declare a variable here will it be considered as --global to the sub procedure? End Main; any help is appreciated.