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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: comp.lang.ada Subject: Re: 4 beginner's questions on the PL Ada Date: Sat, 10 Aug 2013 14:13:04 +0200 Organization: Aioe.org NNTP Server Message-ID: <87wqnt7nhr.fsf@VLAN-3434.student.uu.se> References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> <03ea570b-e45f-4694-ab9b-3413c4770379@googlegroups.com> <878v0aee8i.fsf@VLAN-3434.student.uu.se> <87txiycxx9.fsf@VLAN-3434.student.uu.se> <2531ecb1-4ac0-404a-8229-3110d4268374@googlegroups.com> <87mwoqbao2.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:L4jeAYlQyK3GrQv/UNKVZVkDeKA= X-Original-Bytes: 3060 Xref: number.nntp.dca.giganews.com comp.lang.ada:182935 Date: 2013-08-10T14:13:04+02:00 List-Id: Simon Wright writes: > Well, it turns out to be more complicated than Ahn Vo said, > because Ada.Task_Attributes[1] has to be instantiated with a > definite type (it begins "type Attribute is private;") and > String is indefinite. > > So it might look like ... Thanks a lot. I'm not expecting anyone to produce that much code in response to my questions, for the record. But if someone enjoys writing it, of course, I don't have a problem with that, either. > We don't like to post code that doesn't work Of course, the code works! You are the Ada owls and foxes. Why shouldn't it work? > and producing a working example It doesn't have to work *in isolation*. It can be just 1-3 lines. I am able to glue it together with my code. Almost all programmers are. > Also, we have an excellent on-line reference manual, though it > takes a special kind of person to want to read it at bed-time! Yes, I've read lots of books on Linux, Unix, some one theory, distributed systems, DBs, etc., and some of those have been great, but books on PLs are often, either 1) they try to learn you *programming* (in general) *by means of* the particular language. "On the second line, you see some words delimited by a pair of double quotation marks. This is a so called _string_. A string..." - impossible to read, or 2) they are reference books, for people who already know the language, but not all of it, and sometimes forgetting details (which happens all the time). From this kind of book, if you don't know the PL at all to begin with, you can learn Basic, and possibly C. What about C++? Lisp? I doubt a lot of people could do it. Without rudimentary explanations, and especially *examples*, I doubt save but a few could do it. -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573