Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Is it worth to move my code from Delphi 2009 to Delphi 2010?


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 14 - Last Post: Jun 29, 2015 2:31 AM Last Post By: Rudy Velthuis (...
Dimitrij Kowalski

Posts: 92
Registered: 1/6/05
Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 24, 2015 10:19 PM
Hi guys,

we are working on Delphi 2009 till this day because we do not have the time to upgrade our code to the newest version. There is always something more important (features, bugs...) and our code has 2+ million lines.
I thought that instead of moving from D2009 to XE7 I could atleast move code to D2010 because it is more or less backward compatible and it shouldn't take me that much of a work. I wanted to ask you about your opinion. Is it a good version to move to?

Regards.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 24, 2015 11:42 PM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Dimitrij wrote:

I thought that instead of moving from D2009 to XE7 I could atleast
move code to D2010 because it is more or less backward compatible
and it shouldn't take me that much of a work.

What makes you think moving to XE7 (BTW, XE8 is the latest) would be any
less backward compatible? You are already using a Unicode-enabled version,
and that is one of the biggest hurdles for migrating older projects. Another
big hurdle is installing third-party components that you are using, but you
have to do that anyway for any version you upgrade to. So, what is stopping
you from going to XE7 (or XE8)?

--
Remy Lebeau (TeamB)
Dimitrij Kowalski

Posts: 92
Registered: 1/6/05
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 12:29 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Thank you for your answer. What is stopping me...

1. I would have to convert all RTL modules to new namespace names and then resolve undeclared identifiers for some units beause I assume that some types / classes had changed its location.
2. The probablity that something got broken / changed between D2009 and XE7 is much higher than probablity that something got broken between D2009 and D2010. After all D2010 is almost nothing more than bug fix release. I do not have time to fix all the differences that have grown over the years.

But maybe I am wrong?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 12:42 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Dimitrij wrote:

I would have to convert all RTL modules to new namespace names
and then resolve undeclared identifiers for some units beause I
assume that some types / classes had changed its location.

No, you wouldn't have to change the code at all for that. Just make sure
the relevant namespaces (called "unit scope names" now) are listed in the
"Unit scope names" field in the Project Options. Many of the standard names
are already listed.

--
Remy Lebeau (TeamB)
Robert Triest

Posts: 687
Registered: 3/24/05
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 12:51 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Thank you for your answer. What is stopping me...

1. I would have to convert all RTL modules to new namespace names and then resolve undeclared identifiers for some units beause I assume that some types / classes had changed its location.
A lot of namespaces will just work, also if you dont add the new prefixes for some like vcl or system. (SysUtils will work but also System.SysUtils, Forms will work but also VCL.Forms)
If really needed write a small parser that run through your units and replace the namespaces for you..

2. The probablity that something got broken / changed between D2009 and XE7 is much higher than probablity that something got broken between D2009 and D2010. After all D2010 is almost nothing more than bug fix release. I do not have time to fix all the differences that have grown over the years.
From D2009 to XE4 I had almost no changes, from XE4 to XE8 only FireDac namespaces and FireDac declarations.

But maybe I am wrong?
Ask yourself what you gain by moving from D2009 to D2010?!
Like Remy said, the biggest issue might be to find all the 3th party components that you use for the new version
but if you have the sources then they are already moved to Unicode.
If you don't have the source and they are not availble for the newest version then throw them out of your system.
Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 1:35 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Dimitrij Kowalski wrote:

Thank you for your answer. What is stopping me...

1. I would have to convert all RTL modules to new namespace names and
then resolve undeclared identifiers for some units beause I assume
that some types / classes had changed its location.

No need for that.

2. The
probablity that something got broken / changed between D2009 and XE7
is much higher than probablity that something got broken between
D2009 and D2010.

ISTM that it doesn't make sense to move from one old version to
another, almost as old version. If you have to fix broken things, then,
after you fixed them, you have a modern version, and not something old.

I doubt there will be much you'll have to fix anyway.

--
Rudy Velthuis http://www.rvelthuis.de

"The behavior of any bureaucratic organization can best be
understood by assuming that it is controlled by a secret
cabal of its enemies." -- Robert Conquest's Second Law of Politics

Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 6:51 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Dimitrij Kowalski wrote:

Thank you for your answer. What is stopping me...

1. I would have to convert all RTL modules to new namespace names and
then resolve undeclared identifiers for some units beause I assume
that some types / classes had changed its location.

No need for that.

2. The
probablity that something got broken / changed between D2009 and XE7
is much higher than probablity that something got broken between
D2009 and D2010.

ISTM that it doesn't make sense to move from one old version to
another, almost as old version. If you have to fix broken things, then,
after you fixed them, you have a modern version, and not something old.

I doubt there will be much you'll have to fix anyway.

--
Rudy Velthuis http://www.rvelthuis.de

"The behavior of any bureaucratic organization can best be
understood by assuming that it is controlled by a secret
cabal of its enemies." -- Robert Conquest's Second Law of Politics

Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 29, 2015 2:31 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Dimitrij Kowalski wrote:

Thank you for your answer. What is stopping me...

1. I would have to convert all RTL modules to new namespace names and
then resolve undeclared identifiers for some units beause I assume
that some types / classes had changed its location.

No need for that.

2. The
probablity that something got broken / changed between D2009 and XE7
is much higher than probablity that something got broken between
D2009 and D2010.

ISTM that it doesn't make sense to move from one old version to
another, almost as old version. If you have to fix broken things, then,
after you fixed them, you have a modern version, and not something old.

I doubt there will be much you'll have to fix anyway.

--
Rudy Velthuis http://www.rvelthuis.de

"The behavior of any bureaucratic organization can best be
understood by assuming that it is controlled by a secret
cabal of its enemies." -- Robert Conquest's Second Law of Politics

Dimitrij Kowalski

Posts: 92
Registered: 1/6/05
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 2:58 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
Thank you guys for your input. I had no idea that I do not need to rename my module names to "scoped modules". And if you say that there should be no big problems to move to XE7,XE8 than I will listen you:) The only component which I need to take care of is FIBPlus, last version was XE5 but I think I can update it by myself to XE8.

Regards.
John Furlong

Posts: 96
Registered: 5/25/98
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 6:04 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
On 25/06/2015 1:19 AM, Dimitrij Kowalski wrote:
Hi guys,

we are working on Delphi 2009 till this day because we do not have the time to upgrade our code to the newest version. There is always something more important (features, bugs...) and our code has 2+ million lines.
I thought that instead of moving from D2009 to XE7 I could atleast move code to D2010 because it is more or less backward compatible and it shouldn't take me that much of a work. I wanted to ask you about your opinion. Is it a good version to move to?

Regards.
One thing to keep in mind.

If you have project groups with more than two or three large projects,
you might run into the "out of memory" bugs that have plagued the IDE
since about XE3 or so. We are stuck on XE2 since, on later releases, our
biggest project group (only seven EXE's) won't compile more than two or
three time without having to restart the IDE due to out of memory problems.

See http://support.embarcadero.com/article/44279 for some possible
workarounds.

Also keep in mind, if you do purchase XE8, that gives you "downgrade"
rights to earlier releases, so you get to choose which release works for
you.

J.
Dimitrij Kowalski

Posts: 92
Registered: 1/6/05
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 29, 2015 12:32 AM   in response to: John Furlong in response to: John Furlong
John we have the same issues here on D2009, so that wouldn't be nothing new ;-)
Ralf Stocker

Posts: 121
Registered: 12/24/04
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 11:24 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
No need. You have these new features in D2010:

Enhanced RTTI
Casting interfaces to objects
delayed
Attributes
class constructors/destructors

<Dimitrij Kowalski> schrieb im Newsbeitrag
news:727183 at forums dot embarcadero dot com...

Hi guys,

we are working on Delphi 2009 till this day because we do not have the
time to upgrade our code to the newest version. There is always something
more important (features, bugs...) and our code has 2+ million lines.
I thought that instead of moving from D2009 to XE7 I could atleast move
code to D2010 because it is more or less backward compatible and it
shouldn't take me that much of a work. I wanted to ask you about your
opinion. Is it a good version to move to?

Regards.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 12:02 PM   in response to: Ralf Stocker in response to: Ralf Stocker
Am 25.06.2015 um 20:24 schrieb Ralf Stocker:
No need. You have these new features in D2010:

Enhanced RTTI
Casting interfaces to objects
delayed
Attributes
class constructors/destructors

You only list compiler improvements and RTTI. You do not mention things
like improvements for touch support, Direct2D support and some more
items. Wasn't a dbExpress Firebird driver new in D2010 as well?

But as others suggested: I'd skip a few versions at least.

Greetings

Markus
Ralf Stocker

Posts: 121
Registered: 12/24/04
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 11:25 AM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
No need. You have these new features in D2010:

Enhanced RTTI
Casting interfaces to objects
delayed
Attributes
class constructors/destructors

<Dimitrij Kowalski> schrieb im Newsbeitrag
news:727183 at forums dot embarcadero dot com...

Hi guys,

we are working on Delphi 2009 till this day because we do not have the
time to upgrade our code to the newest version. There is always something
more important (features, bugs...) and our code has 2+ million lines.
I thought that instead of moving from D2009 to XE7 I could atleast move
code to D2010 because it is more or less backward compatible and it
shouldn't take me that much of a work. I wanted to ask you about your
opinion. Is it a good version to move to?

Regards.
Ralf Stocker

Posts: 121
Registered: 12/24/04
Re: Is it worth to move my code from Delphi 2009 to Delphi 2010?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2015 12:50 PM   in response to: Dimitrij Kowalski in response to: Dimitrij Kowalski
No need. You have these new features in D2010:

Enhanced RTTI
Casting interfaces to objects
delayed
Attributes
class constructors/destructors

<Dimitrij Kowalski> schrieb im Newsbeitrag
news:727183 at forums dot embarcadero dot com...

Hi guys,

we are working on Delphi 2009 till this day because we do not have the
time to upgrade our code to the newest version. There is always something
more important (features, bugs...) and our code has 2+ million lines.
I thought that instead of moving from D2009 to XE7 I could atleast move
code to D2010 because it is more or less backward compatible and it
shouldn't take me that much of a work. I wanted to ask you about your
opinion. Is it a good version to move to?

Regards.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02