Re: Delphi 7/8 Language enhancements
From: Rudy Velthuis (TeamB) (rvelthuis_at_gmx.de)
Date: 12/03/03
- Next message: Craig Stuntz [TeamB]: "Re: My view on the "Delphi is dead" issue"
- Previous message: Craig Stuntz [TeamB]: "Re: My view on the "Delphi is dead" issue"
- In reply to: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Next in thread: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Reply: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Dec 2003 10:49:55 -0700
Craig Stuntz [TeamB] wrote:
> That would merely be a matter of the CLS.
The CLI, I think.
> But at least parts of operator overloading are not in the CLS at all --
> notably, the names of the implementing methods. So I don't think
that's
> the whole story, at the very least.
They are part of the ECMA docs about the CLI (Common Language Interface).
Partition I Architecture.pdf:
10.3 Operator Overloading
10.3.1 Unary operators
10.3.2 Binary operators
10.3.3 Conversion operators
Pages 62ff of that document contain all the names. But it also says, on
page 62:
"CLS (framework): Shall not publicly expose overloading except as
specified here. Frameworks authors
should bear in mind that many programming languages, including
Object-Oriented languages, do not support
overloading and will expose overloaded methods or properties through
mangled names. Most languages
support neither operator overloading nor overloading based on return
type, so op_Implicit and op_Explicit
shall always be augmented with some alternative way to gain the same
functionality. "
I think that could be a more valid reason for the CLS not using them.
But I think I have seen some instances of operator overloading in the CLS
on *classes*. Just do a Member Search (F4) on "op_" in Lutz Roeder's
Reflector, and you'll find them on numeric classes, on String, Cursor,
Version, XmlQualifiedName etc.
-- Rudy Velthuis (TeamB) "This isn't right, this isn't even wrong." -- Wolfgang Pauli (1900-1958), upon reading a young physicist's paper
- Next message: Craig Stuntz [TeamB]: "Re: My view on the "Delphi is dead" issue"
- Previous message: Craig Stuntz [TeamB]: "Re: My view on the "Delphi is dead" issue"
- In reply to: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Next in thread: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Reply: Craig Stuntz [TeamB]: "Re: Delphi 7/8 Language enhancements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|