Re: overloading - need good approach
From: Dmitry A. Kazakov (mailbox_at_dmitry-kazakov.de)
Date: 03/26/05
- Next message: Alfredo Novoa: "Re: OO vs. RDB challenge"
- Previous message: Phlip: "Re: Design is intent."
- Next in thread: Lurker: "Re: overloading - need good approach"
- Maybe reply: Lurker: "Re: overloading - need good approach"
- Maybe reply: Lurker: "Re: overloading - need good approach"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Mar 2005 09:04:47 +0100
On Sat, 26 Mar 2005 04:49:38 GMT, Thomas G. Marshall wrote:
> Dmitry A. Kazakov coughed up:
>> On Sat, 19 Feb 2005 21:55:20 +0100, Gibby Koldenhof wrote:
>>
>>> I'm designing my own little (typeless) OO language, and I'm sorta
>>> stuck on how to nicely support overloading of methods.
>>
>> As a matter of fact, you cannot have overloading in a typeless
>> language. After all the very way overloading works is based on the
>> type profiles. I also cannot imagine an OO language without types,
>> but well, that's aside.
>
> Consider the two methods, in a typeless language:
>
> public method(param1) {......}
>
> public method(param1, param2) {.......}
>
> Are these overloaded?
Good point.
Arguably this hypothetic language still has [anonymous] function types to
distinguish "method"s at the call point, but I won't insist on that.
-- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de
- Next message: Alfredo Novoa: "Re: OO vs. RDB challenge"
- Previous message: Phlip: "Re: Design is intent."
- Next in thread: Lurker: "Re: overloading - need good approach"
- Maybe reply: Lurker: "Re: overloading - need good approach"
- Maybe reply: Lurker: "Re: overloading - need good approach"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|