TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Thomas W Moran <[log in to unmask]>
Thu, 15 Oct 1998 11:48:32 -0400
text/plain (16 lines)
>misspelled attempts to overide
  Has any compiler vendor experimented with warnings?  Presumably
a compiler must currently compare a new procedure name and
profile with the list of procedures it might be meant to
override.  If the names are 'similar' and the parameter profiles
are identical, it's probably worth a 'did you mean this to be
different?' warning.
  In the meantime, editors that make it easy to cut and paste
the spec from the overriden to the new spec, seem the only really
safe way to go.  It can be a real bear finding this kind of typo.
  In CLAW, which is highly OO, we made a special effort to make
sure overridable specs were easily cut-and-paste-able, by such
techniques as keeping the parameter plus comments short enough to
be fully visible in a window and using full dotted type names.
Tom Moran