comp.lang.ada
 help / color / mirror / Atom feed
* GNAT GPL is proving...educational
@ 2013-07-22  1:28 Alan Jump
  2013-07-22  3:26 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Alan Jump @ 2013-07-22  1:28 UTC (permalink / raw)


A neophyte commentary follows...pardon me whilst I pull on my flame-retardant underwear. :-)

Learning Ada has its pitfalls and pratfalls, just as learning any other language. I've just run across a couple of them, thanks to the example code provided with Barnes' "Programming in Ada 2005". First off is an apparent change in coding style required by GNAT...specifically, only one full stop is allowed in a given filename or package/function/procedure name. So, rather than being able to say

package Stacks.Vector is

one must use

package Stacks_Vector is

and then save the file as Stacks_Vector.ads.

The other unexpected (but, on reflection, totally logical) curveball is that GNAT, and Ada in general, really doesn't like monolithic program files...I would have simply blamed GNAT, but the same problem occurred when trying to load the example source code through AdaGIDE, so it's clearly a shift in thinking now required by Ada. Package specifications get their own .ads file, everything else goes in .adb files.

Coming from a background that involved FORTRAN and some basic-level Java6, there's a definite learning curve. But I've no doubt the results will justify the efforts.

(Now, do I dare take that flame-retardant underwear off yet? It's itchy.)

- -
73 de N5ILN
Alan

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2013-08-01 19:28 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22  1:28 GNAT GPL is proving...educational Alan Jump
2013-07-22  3:26 ` Jeffrey Carter
2013-07-22  3:50   ` Alan Jump
2013-07-22  5:11     ` Jeffrey Carter
2013-07-22 22:19       ` Shark8
2013-07-22  5:28     ` Bill Findlay
2013-07-22  8:49       ` Georg Bauhaus
2013-07-22  9:04         ` Bill Findlay
2013-08-01 15:07     ` Stephen Leake
2013-08-01 19:28       ` Alan Jump
2013-07-25  5:41   ` Yannick Duchêne (Hibou57)
2013-07-25 20:25     ` J-P. Rosen
2013-07-25 23:07       ` Yannick Duchêne (Hibou57)
2013-07-22  7:18 ` Niklas Holsti
2013-07-22  8:52   ` Simon Wright
2013-07-31  2:02   ` David Thompson
2013-07-22 18:28 ` Yannick Duchêne (Hibou57)
2013-07-22 19:04   ` Alan Jump
2013-07-22 19:49     ` Ludovic Brenta
2013-07-22 19:51     ` Simon Wright
2013-07-22 20:12     ` Jeffrey Carter
2013-07-22 23:34     ` Adam Beneschan
2013-07-23  3:46       ` Shark8
2013-07-23 17:46         ` Yannick Duchêne (Hibou57)
2013-07-27  3:17       ` Randy Brukardt
2013-07-29 17:21         ` Alan Jump
2013-07-29 20:57           ` Shark8
2013-07-29 21:30             ` Adam Beneschan
2013-07-29 21:44               ` Alan Jump
2013-07-29 22:36                 ` Yannick Duchêne (Hibou57)

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