comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Synatx error for Hello World Ada program in the web, or did Ada changed?
Date: Tue, 22 Dec 2009 16:16:17 -0800 (PST)
Date: 2009-12-22T16:16:17-08:00	[thread overview]
Message-ID: <1c410668-4889-4ad3-b29e-3f52d53eaf91@f18g2000prf.googlegroups.com> (raw)
In-Reply-To: KrcYm.81441$Zu5.43665@newsfe24.iad

On Dec 22, 3:16 pm, "Nasser M. Abbasi" <n...@12000.org> 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!)
>
> ";" is missing from the end of the first line and the end of the last line.
>
> Is this just an oversight on the above web page, or did Ada may be changed
> from the version which was used for the above code? I assume GPL 2009 uses
> Ada 2005, and may be the above code was for Ada 83 or Ada 95 and things
> changed?
>
> Or may be this is a GNAT only thing?
>
> I doubt it?

It is clearly an oversight on the above web page.

Anh Vo




  reply	other threads:[~2009-12-23  0:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 23:16 Synatx error for Hello World Ada program in the web, or did Ada changed? Nasser M. Abbasi
2009-12-23  0:16 ` Anh Vo [this message]
2009-12-23  0:18 ` (see below)
2009-12-23  1:31 ` Adam Beneschan
2009-12-23 10:17   ` Hibou57 (Yannick Duchêne)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox