C++ Versus Pascal

D

dktekno

I have tried C++ Builder and Delphi and Visual Studio.

What are the reasons people do not like Delphi and would rather develop in
C++? C++ compilers are so.. pedantic and so slowy. In Pascal there is a room
for errors like typos, like if you declared a variable A and then you write
a later, then it understands what you mean. C++ is case sensitive. C++ is
slow to compile. Few lines = slow compilation. In Delphi, the compile time
is rather fast.
 
F

Frederick Gotham

dktekno posted:
C++ compilers are so.. pedantic


Ah yes, it's so annoying how they only accept correct syntax.

and so slowy.


Please use adjectives rather than adverbs when describing a noun -- "slow".
The greater the amount of code you have to compile, the longer it will take
to compile.

In Pascal there is a room for errors like typos, like if you declared a
variable A and then you write a later, then it understands what you
mean. C++ is case sensitive.


Yes, C++ is case-sensitive.

C++ is slow to compile. Few lines = slow compilation.


Compile this:

int main(){}

In Delphi, the compile time is rather fast.


Compile a big program.
 
T

Thomas J. Gritzan

dktekno said:
What are the reasons people do not like Delphi

Hey I like it! It's a nice little city.
and would rather develop in
C++? C++ compilers are so.. pedantic and so slowy.

C++ has a nicer syntax. When I would have to write ':=' for every
assignment instead of '=' in C++, I would try another language. And BEGIN
END; are more keystrokes than {}. Ok, no flamewar, please! :)

A major reason would be, that Delphi only works on MS Windows (and Linux).
And the mass of legacy C code cannot be compiled with a Delphi compiler,
but could easily moved to a C++ compiler. And there are many C++ compilers,
some of them free or open source.

F'Up to c.l.misc
 
B

benben

dktekno said:
I have tried C++ Builder and Delphi and Visual Studio.

What are the reasons people do not like Delphi and would rather develop in
C++? C++ compilers are so.. pedantic and so slowy. In Pascal there is a room
for errors like typos, like if you declared a variable A and then you write
a later, then it understands what you mean. C++ is case sensitive. C++ is
slow to compile. Few lines = slow compilation. In Delphi, the compile time
is rather fast.

I can't understand that either. Why even bother a high level language so
you have to deal with compilation and all sorts of syntax errors and
type checking? We should just stick to assembly language and an
assembler runs faster than any compiler in town!

Regards,
Ben
 
K

Kaz Kylheku

dktekno said:
I have tried C++ Builder and Delphi and Visual Studio.

You have not tried much.
What are the reasons people do not like Delphi and would rather develop in
C++?

Delphi isn't a programming language, but an implementation. A product.
It's a Rapid Application Development environment for Microsoft Windows
(and in a limited way, Linux, by means of Kylix).

If you are going to compare C++ and Pascal, then compare ANSI/ISO C++
and ANSI Pascal. Standard Pascal is a poor toy language compared to
standard C++.

Of course Delphi extends the language, but those extensions lock you to
that implementation.

With C++, you can target just about any operating system (not just the
desktop and server ones, but embedded ones). And of course many
architectures: ARM, MIPS, Power PC, SPARC, Alpha, 64 bit x86, ... and
on and on. And while you are doing that, you can do a lot of the work
in portable C++.

There is no such thing as portable Delphi, where you write 99% of your
code in a standard language and isolate the platform hooks in the
remaining 1%.
In Delphi, the compile time is rather fast.

How fast is it for a 64 bit MIPS target? Do you even know what that
means?
 
R

Robert J. Hansen

What are the reasons people do not like Delphi and would rather develop in

Delphi isn't available for my platform (OS X), while C++ is available
everywhere I want to be.

I'm in the minority in that I very much like Pascal syntax. While it's
more verbose, I think it's also far more readable. It's been a lot
easier for me to read Ada95 code I've written a year ago than it's been
for me to read C++ code I've written a year ago.

However, some of that is due to the fact I use template metaprogramming
in my C++ code, and Ada95 has no comparable facility in the language.
So it's probably not the fairest of comparisons. I still suspect that
plain OOP + generics is going to be easier to read in Ada95 than in C++.
 
D

Duane Hebert

dktekno said:
I have tried C++ Builder and Delphi and Visual Studio.

What are the reasons people do not like Delphi and would rather develop in
C++? C++ compilers are so.. pedantic and so slowy. In Pascal there is a
room
for errors like typos, like if you declared a variable A and then you
write
a later, then it understands what you mean. C++ is case sensitive. C++ is
slow to compile. Few lines = slow compilation. In Delphi, the compile time
is rather fast.

If you use Delphi, you're dependant on Borland and
targeting windows (we won't discuss Kylix)

If you use C++ you can target any platform(s)
and can get compilers from many sources.

As to speed, you could ask Borland why Delphi
compiles quicker than C++, but in general, C++
is a more complex language.
There are compilers for C++ faster than Borland's
but I haven't seen one yet that's faster than Delphi.

Why do you ask? If it's up to you only and
you want to develop windows apps and you
want to limit yourself to Borland, just do it.
 
J

Jim Langston

dktekno said:
I have tried C++ Builder and Delphi and Visual Studio.

What are the reasons people do not like Delphi and would rather develop in
C++? C++ compilers are so.. pedantic and so slowy. In Pascal there is a
room
for errors like typos, like if you declared a variable A and then you
write
a later, then it understands what you mean. C++ is case sensitive. C++ is
slow to compile. Few lines = slow compilation. In Delphi, the compile time
is rather fast.

I used to use Delphi. I originally used Borland Pascal, then Delphi when it
came out. I find that Delphi has too many problems though, although it was
probably the libraries I was using. I could never find an ODBC driver that
worked well in Delphi when I was trying to interface with some SQL server
(don't remember which one, wasn't MySQL or MicrosoftSQL however). Other
libraries I tried had various problems.

I just find that C++ is more mature, especiall in it's libraries.

Truth be told, I found it much faster to produce programs in Delphi, but
there would always be obscure bugs in some library that were difficult, if
not impossible, to figure out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top