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-Thread: a07f3367d7,73ab8b745d9afa77 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Synatx error for Hello World Ada program in the web, or did Ada changed? Date: Wed, 23 Dec 2009 00:18:43 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net IPlpR0nEgpRrVecEsRBKKQhBzf7YmjXt/e7P1HgBPRvvdSlonp Cancel-Lock: sha1:tFAbi7FvYCLgJT25lQOGONAGF/M= User-Agent: Microsoft-Entourage/12.20.0.090605 Thread-Topic: Synatx error for Hello World Ada program in the web, or did Ada changed? Thread-Index: AcqDZXwSWgztSYdz3kuHoKU3pKDVkw== Xref: g2news1.google.com comp.lang.ada:8492 Date: 2009-12-23T00:18:43+00:00 List-Id: On 22/12/2009 23:16, in article KrcYm.81441$Zu5.43665@newsfe24.iad, "Nasser M. Abbasi" wrote: > I was just testing my GPS installation from the latest GPL 2009 edition > downloaded from Ada libre web site. > > So I just copied this hello world ada program shown here: > > http://www.engin.umd.umich.edu/CIS/course.des/cis400/ada/hworld.html > > Here it is: > > with Text_To; use Text_To > procedure hello is > begin > put("Hello World"); > end hello > > > Funny thing is that, I got 2 syntax errors. (but GPS is working!) So is the compiler! > > ";" is missing from the end of the first line and the end of the last line. The code is wrong, and it's not just a matter of missing semicolons. The rest of the code on that website is almost as bad. If you want to learn the rudiments of Ada from a website, look at: -- Bill Findlay chez blueyonder.co.uk