comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Synatx error for Hello World Ada program in the web, or did Ada changed?
Date: Tue, 22 Dec 2009 17:16:58 -0600
Date: 2009-12-22T17:16:58-06:00	[thread overview]
Message-ID: <KrcYm.81441$Zu5.43665@newsfe24.iad> (raw)

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?

--Nasser






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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 23:16 Nasser M. Abbasi [this message]
2009-12-23  0:16 ` Synatx error for Hello World Ada program in the web, or did Ada changed? Anh Vo
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