Operator Overload: Rephrased

From: Alexandre Bento Freire (a-bentofreire_at_a-bentofreire.com.nospam)
Date: 10/21/04


Date: Thu, 21 Oct 2004 00:38:00 +0100

Hi, everyone
A few days ago I posted a question about operator overload.
I saw a lot of answers, but....
This is the issue, i have been Delphi for 7 years.
I have project that started initially with Delphi 3, but then i made some
improvements when the Delphi 5 was out there.
This project contains:
many hundreds of units, almost ONE MILION lines of code.

It's SOLID, ROBUST, it has been here for seven years.
Is still easy to read, modify after thousands of changes and improvements.

It was done in Delphi 5, therefore Win32 !

By using Delphi allowed me to make code very readable.
The major problem, it's the kilometric 2D and 3D geometric equations.

Now, where is the point:
- I can't change the language into C#, or whatever.
- I can't change into .Net, because i will not change thousands and
thousands of lines.

I just want to make my equations simpler, using operator overload.
There is no garbage collection, no hasle.

I just what do be able to have: +, - * of homogenous matrix and affine
vectors with doubles type fields.
That is all !!!
Things like:

 P1.Sub(P2)^.DotProduct(P3.Sub(P2)^). (where P1, P2, P3, is object X, Y :
double; end)
could be simply replaced by: (P1 - P2) * (P3 - P2)

Like this i have thousands of other equations, and this one is only the most
basic, i have other really BIG ones.

Is there a new version of Win32 Delphi, using Delphi Language (compatible
with Delphi 5), that does this ?

Thanks, in advance
Alexandre



Relevant Pages

  • Were can I put the wishlist for a new Delphi version ?
    ... I have evaluated the Delphi 2006. ... And it has operator overload finally after years of waiting. ... not to use 'packed object', because that it's packed object with operator ...
    (borland.public.delphi.non-technical)
  • Re: Were can I put the wishlist for a new Delphi version ?
    ... Alexandre Bento Freire wrote: ... I have evaluated the Delphi 2006. ... And it has operator overload finally after years of waiting. ...
    (borland.public.delphi.non-technical)
  • Operator Overload
    ... Does Delphi 8 or Delphi 2005 has operator overload? ... But, Delphi is the best RAD tool, it allows me to have a clean code, ... and having large equations using binary functions, reduces code readness. ...
    (borland.public.delphi.non-technical)
  • Re: Answer to why low and high are bad !
    ... > Skybuck Flying wrote: ... The code follows all the rules of the delphi language. ... >> Good luck with your programming. ...
    (alt.comp.lang.borland-delphi)
  • Re: Lino and Delphi
    ... What is meant by 'Delphi'? ... I don't agree that Delphi should necessarily farmeed off to a seperate company. ... Even for a company like Borland it is becoming tough, That is probably why they want to put everything into one IDE.. ... Drop the multi language aspects and support only the Delphi language? ...
    (borland.public.delphi.non-technical)