| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: What databases have taught me
On 30 Jun 2006 16:33:44 -0700, Keith H Duggar wrote:
> Marshall wrote:
> > Or when I load your module and define an arbitrary function > on your type N have I now defined a new type? Of course not.
It is an interesting issue. The situation now is that languages distinguish "methods" and "subroutines". A method cannot be defined after some freezing point. For them the answer is yes, you have to define a new type to override such an operation. C++ example:
class X
{
virtual Foo (); // That's a method of X }; // Freezing point
virtual Bar (); // Illegal
I don't like this distinction. Maybe it is possible to have a language with methods only.
> Which is why I think Dmitry's notion of type is somewhat > useless in a programming context.
Technically it is not a problem. You can consider, that each declaration of a function introduces an anonymous subtype [*]. Otherwise, in a typed system, you were unable to call such a function. I would be a type error.
-- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.deReceived on Sat Jul 01 2006 - 04:22:00 CDT
![]() |
![]() |