Talk:Ada Programming/Basic

Re: Dynamic Types
The statement about static array bounds in C is misleading if not incorrect in its current form. At least since C99, I think. Consider

float g(int n) { struct S { float fs[n]; };  // ... }

This is also o.K. by all my C compilers

C99
True, C99 has dynamic arrays. We might have to change the statement.

PS: you must have an exotic set of C compiler since all main stream compiler either have not implemented va arrays or still have them on the known bug list.

Improvement of basics page
If the point of this "basics" page is to teach a newby Ada, then I think it's missed completely. It seems to start in the middle, wanders through examples, using lots of terminology that's never explained, only to point out relatively unhelpful variations of some commands.

How about a more structured approach; give the explanation of a minimal Ada program, then flesh it out with the "hello world" example.

If a discussion of executible sizes is in order right away, the provide details on options to be used, or links to the mentioned projects.

This looks like a disorganized mess.


 * The current status of the page is the confluetion of various collaborations with a divergent approach. You may be right in that the page may need a rework. The executable size section might be moved to Ada Programming/Tips with a link from here. ManuelGR 11:09, 14 May 2006 (UTC)


 * This page definitely needs changes, it is the entry point from the Wikipedia Ada page and should be in the best possible shape I think. I have moved some of the messy details to a &lt;ref> footnote, but it is lost now! Can't we use footnotes, or have I made a mistake? Found it, my fault, sorry. gb 22:51, 30 May 2007 (UTC)


 * I'd like to see a few more things moved into footnotes, in particlar the excerpt from the Text_IO header! It really interrupts the flow and is off-putting to the newbie. Gahs (talk) 20:50, 6 December 2007 (UTC)

Sorry not sure how to use the discussion page yet but should; Put("Hello, world!"); New_Line; Put("I am an Ada program with package use."); be replaced by  Put_Line("Hello, world!"); New_Line; Put_Line("I am an Ada program with package use."); please delete this once dealt with by experienced Ada programmer. Thank you.

Compilation
It would be nice if you could point out how to compile hello world with gnat, e.g. gnatmake hello_world.adb. This is the basics page after all and just running gnat hello_world.adb produces unhelpful errors. See also http://www.adacore.com/wp-content/files/auto_update/gnat-unw-docs/html/gnat_ugn_2.html --139.19.14.55 (discuss)


 * You are right. I have just discovered that the Ada Programming/Building page was not referenced inside the wikibook. It was only included on the final Ada Programming/All Chapters compilation. I have included a link to that chapter on this one. ManuelGR (discuss • contribs) 18:29, 24 May 2011 (UTC)

Input
It would be nice if you also added an example with text input. The "What's your name?" - Input - "Hello, $Name$" example. --139.19.14.55 (discuss)

Yes ... it would be nice to explain how to begin to compile this hello world, because sommething is missing to get it.