From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Question about enumeration types
Date: Fri, 27 Jul 2001 13:04:39 GMT
Date: 2001-07-27T13:04:39+00:00 [thread overview]
Message-ID: <HFd87.1561$533.328981566@newssvr16.news.prodigy.com> (raw)
In-Reply-To: 5ee5b646.0107260852.2dcba52a@posting.google.com
"Robert Dewar" <dewar@gnat.com> wrote in message
news:5ee5b646.0107260852.2dcba52a@posting.google.com...
: Now if you have a program where you have two functions
:
: procedure Arguement (F : Func);
: -- Supply saved argument for function F
:
: procedure Argument (W : Employee);
: -- Record that employee W got into an argument with management
:
: That's bad programming, because the two procedures have nothing to
: do with one another at an abstract level, and now the prograqm is
: harder to read, because the reader will not know which version of
: Argument is the appropriate one. Unfortunately the compiler has no
: way of treating this horrible misuse of overloading as an error,
: so you don't get any diagnostic in this case.
What overloading? I don't see anything overloaded here! :)
next prev parent reply other threads:[~2001-07-27 13:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-24 11:40 Question about enumeration types Reinert Korsnes
2001-07-24 12:23 ` Larry Hazel
2001-07-24 12:31 ` Marc A. Criley
2001-07-26 16:52 ` Robert Dewar
2001-07-27 13:04 ` Ken Garlington [this message]
2001-07-31 9:59 ` Peter Hermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox