comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent.Guerby@enst-bretagne.fr (Laurent Guerby)
Subject: Re: Some questions about Ada.
Date: 1996/05/03
Date: 1996-05-03T00:00:00+00:00	[thread overview]
Message-ID: <4xrat20zh0.fsf@leibniz.enst-bretagne.fr> (raw)
In-Reply-To: DqrD2C.Jyr@undergrad.math.uwaterloo.ca


Robert A Duff writes
: In article <DqrD2C.Jyr@undergrad.math.uwaterloo.ca>,
[deleted]
: Ada/Modula-3 way is better.  Some think the C++/Smalltalk way is better.
                                                  ^^^^^^^^^

   Do you mean Eiffel here ? I don't  see C++ closer to Smalltalk than
Ada or Modula-3, in fact, Smalltalk is very close to Smalltalk ;-).

: >Second, I've been wondering why Ada is case-insensitive. I'm aware that Ada
: >was very carefully designed, so I'm thinking there must be some reason it
: >was made case-insensitive rather than case-sensitive, but I can't imagine
: >what that reason could be.
[deleted]
: The problem with case sensitivity, is that you can define two things i
: and I that are different variables, and that makes code less readable.
: The problem with case INsensitivity, is that you can define a variable
: I, and refer to it as i, and that makes code less readable.  IMHO, the
: "right" solution is neither one.  How about this rule:
: 
:     Overload resolution is performed in a case INsensitive manner.
: 
:     AFTER overload resolution, a legality rule is that each reference
:     to something has to use the same case as the declaration.
: 
:     And, oh, by the way, make everything overloadable, not just
:     subprogram names.
: 
: ?

   Note that  the GNAT  style  switch works exactly   this way  (if  I
remember well), and consider casing inconsistency as a fatal error.

-- 
--  Laurent Guerby, student at Telecom Bretagne (France), Team Ada.
--  "Use the Source, Luke. The Source will be with you, always (GPL)."
--  http://www-eleves.enst-bretagne.fr/~guerby/ (GATO Project).
--  Try GNAT, the GNU Ada 95 compiler (ftp://cs.nyu.edu/pub/gnat).




  parent reply	other threads:[~1996-05-03  0:00 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-02  0:00 Some questions about Ada Carl Laurence Gonsalves
1996-05-02  0:00 ` Dave Jones
1996-05-03  0:00   ` Carl Laurence Gonsalves
1996-05-03  0:00     ` Adam Beneschan
1996-05-04  0:00       ` Robert Dewar
1996-05-04  0:00         ` Richard Kenner
1996-05-04  0:00           ` Robert Dewar
1996-05-05  0:00             ` Richard Kenner
1996-05-05  0:00               ` Robert Dewar
1996-05-04  0:00         ` Robert A Duff
1996-05-04  0:00           ` Robert Dewar
1996-05-05  0:00             ` Robert A Duff
1996-05-05  0:00               ` Arthur Evans Jr
1996-05-05  0:00                 ` Robert Dewar
1996-05-06  0:00                   ` Norman H. Cohen
1996-05-06  0:00                     ` David Weller
1996-05-07  0:00                       ` Robert Dewar
1996-05-12  0:00                         ` Geert Bosch
1996-05-05  0:00                 ` Robert Dewar
1996-05-06  0:00                 ` Christopher J. Henrich
1996-05-04  0:00         ` Kevin D. Heatwole
1996-05-06  0:00         ` Norman H. Cohen
1996-05-06  0:00           ` Robert Dewar
1996-05-04  0:00       ` Carl Laurence Gonsalves
1996-05-03  0:00     ` Michael Feldman
1996-05-03  0:00     ` Dave Jones
1996-05-03  0:00     ` Robert A Duff
1996-05-06  0:00     ` Laurent Guerby
1996-05-03  0:00   ` Darren C Davenport
1996-05-03  0:00   ` Spencer Allain
1996-05-06  0:00   ` Matthew M. Lih
1996-05-09  0:00     ` Dave Jones
1996-05-02  0:00 ` Robert A Duff
1996-05-03  0:00 ` Laurent Guerby [this message]
1996-05-03  0:00   ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox