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: 103376,c58a5b8372dc24a0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Mon, 19 Apr 2010 21:48:42 +0200 From: =?ISO-8859-1?Q?Thomas_L=F8cke?= <"tl at ada-dk.org"> Organization: Ada DK User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: confusion with string initialization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4bccb39a$0$279$14726298@news.sunsite.dk> NNTP-Posting-Host: 83.91.213.86 X-Trace: news.sunsite.dk DXC=Lg0\7HR7G8XOP]JQ=foLd_YSB=nbEKnk[FZ?B@PObfgUW1H7KFB`P_Sj<6O5AZ58U]]CDY[=VZ7PSVSiCS>Nm?GR;jJGC8MU<[_PSa]\RDS\k\ X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:10075 Date: 2010-04-19T21:48:42+02:00 List-Id: Colin Paul Gloster wrote: > Why did you consider a book which makes which packages things are in > unclear by mutiliating programs by means of the USE keyword to be > excellent? John Barnes spends a lot of time throughout the book explaining how the with/use clauses work, how library units work, how the scope/visibility/accesibility systems works and how packages work. He does not blindly "abuse" the use keyword. Quote: "However, there is a strong school of thought that use clauses are bad for you since they obscure the origin of entities. In order to alleviate this dilemma there is also another form of use clause, the so-called use type clause. This can be placed in a declarative part just a like package clause and has similar scope. It makes just the primitive operators of a type directly visible." As a beginner I've had much joy out of reading the John Barnes book. It deals with a complicated subject matter in clear and concise manner. At least that's my experience, and I came from a more or less pure scripting (PHP/Bash/XSLT) background, so many of the Ada concepts were very or completely alien to me. I think the examples in the book are very clear, if you bother to actually READ the book, and not treat it like an Ada cookbook. So from this beginner the book gets two thumbs up. :o) With that said, I would personally like a book on Ada with a more cookbook like approach, especially if it had a chapter on project files and compiling in general. -- Regards, Thomas L�cke Email: tl at ada-dk.org Web: http:ada-dk.org IRC nick: ThomasLocke