473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C++ Versus Pascal

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.


Sep 10 '06 #1
7 2411
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.

--

Frederick Gotham
Sep 10 '06 #2
dktekno wrote:
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

--
Thomas
http://www.netmeister.org/news/learn2quote.html
Sep 10 '06 #3
dktekno wrote:
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
Sep 10 '06 #4
dktekno wrote:
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?

Sep 10 '06 #5
What are the reasons people do not like Delphi and would rather develop in
C++?
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++.

Sep 10 '06 #6

"dktekno" <dk*****@gmail.comwrote in message
news:45***********************@news.sunsite.dk...
>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.
Sep 10 '06 #7
"dktekno" <dk*****@gmail.comwrote in message
news:45***********************@news.sunsite.dk...
>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.
Sep 11 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
11
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
9
by: Dieter Vanderelst | last post by:
Dear all, I'm currently comparing Python versus Perl to use in a project that involved a lot of text processing. I'm trying to determine what the most efficient language would be for our...
9
by: travisperkins03 | last post by:
Hi, I have read somewhere that C code sometimes cannot be compiled to be as efficient as FORTRAN, eg for matrix multiplication, because a C compiler cannot make the assumptions about arrays that...
38
by: Arjang | last post by:
http://www.codeproject.com/useritems/CSharpVersusVB.asp
83
by: sunny | last post by:
Hi All What is C99 Standard is all about. is it portable, i mean i saw -std=C99 option in GCC but there is no such thing in VC++.? which one is better ANSI C / C99? can i know the major...
42
by: John Doty | last post by:
I realized that I have a little job on the table that is a fine test of the Python versus Standard Forth code availability and reusability issue. Note that I have little experience with either...
0
by: dhruba.bandopadhyay | last post by:
Am using Borland C++ 4.5 for the old dos.h APIs. It appears that newer versions of compilers stop support for the oldskool DOS routines. Am trying to convert/port an oldskool Pascal program that...
62
by: Generic Usenet Account | last post by:
A lot of research has been done to prove that the contention that C code is more efficient and more compact than equivalent C++ code is a myth. My posting pertains to a slightly different aspect...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.