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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Wed, 02 Mar 2011 01:45:27 -0800 Organization: Aioe.org NNTP Server Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <4d4c232a$0$28967$882e7ee2@usenet-news.net> <4D4D6506.50909@obry.net> <4d50095f$0$22393$882e7ee2@usenet-news.net> <4d6d56c4$0$11509$882e7ee2@usenet-news.net> <4D6D6A90.2090108@obry.net> <4d6d6e60$0$11509$882e7ee2@usenet-news.net> <4D6E0BA5.9080301@obry.net> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:18687 Date: 2011-03-02T01:45:27-08:00 List-Id: On 3/2/2011 1:31 AM, Dmitry A. Kazakov wrote: > On Wed, 02 Mar 2011 10:19:33 +0100, Pascal Obry wrote: > >> I've >> been there and this is overly complex, not because Ada but because >> issues I have descibed (quoting, slash/backslash) and this because all >> this is *untyped* programming. > > BTW, my major objection to the design of Ada.Directories is that path and > file name were made "untyped" Strings. That is not Ada! > I wonder what you would think then of the new Java feature (in JDK 7) in which one can do now do a switch on a string literal? http://tech.puredanger.com/java7/#switch -------------------------------- Description: Allow switch statements to use strings in the case blocks. Example: static boolean booleanFromString(String s) { switch(s) { case "true": return true; case "false": return false; } throw new IllegalArgumentException(s); } ------------------------- Another example I saw: http://www.zparacha.com/features-coming-java-7/ ---------------------------- swith(clientID){ case "eStore": callEStore(); break; case "Retail": calRetail(); break; case "CSR": callCSR(); break; default: invalidClient(); } ----------------------- It seems like it might be a convenient feature? --Nasser