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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,174ec7dc941a1068 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!o61g2000hsh.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Factory Pattern Date: Wed, 25 Jul 2007 23:44:07 -0700 Organization: http://groups.google.com Message-ID: <1185432247.046242.24300@o61g2000hsh.googlegroups.com> References: <1185387571.367570.163160@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: 137.138.37.241 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1185432247 718 127.0.0.1 (26 Jul 2007 06:44:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Jul 2007 06:44:07 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070601 Red Hat/1.5.0.12-0.1.slc3 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o61g2000hsh.googlegroups.com; posting-host=137.138.37.241; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1192 Date: 2007-07-25T23:44:07-07:00 List-Id: On 26 Lip, 02:51, "Jeffrey R. Carter" wrote: > I would think that an enumeration type would be better than Integer for > selecting among a few choices. Using Integer probably reflects C/++ > thinking. No. C and C++ have enumerations. > Like all well designed languages, Ada is not case sensitive. Careful. It is a question of interpretation of any given character set and it can be different with different tools, and there are many. The problem is that it is only the Ada compiler which can be case insensitive, but text editors or tools like diff or grep are not by default and making them such requires additioinal effort - this is a perfect place for mistakes. In addition, being case-insensitive and at the same time allowing full Unicode in identifiers is kind of schisophreny. > de facto Ada standard of > Camelcase. If there are such standards, then what's the benefit of being case- insensitive? Get any Ada program that conforms to this de facto standard and imagine that the compiler is today case-sensitive. Would you have any problem compiling this program? No. > Ada's features for programming by extension are somewhat different than > C++'s, and you need to become familiar with the Ada concepts before > trying something like this. Once you do, though, you may find you like > Ada way better. You can have both static and dispatching calls to the > same subprogram, for example. You can have it in C++ as well, so this example is not the reason to like Ada "way better". -- Maciej Sobczak http://www.msobczak.com/