• Welcome to Valhalla Legends Archive.
 

Pascal

Started by Meh, September 13, 2004, 02:31 PM

Previous topic - Next topic

K

Quote from: (V)eh on September 16, 2004, 11:00 AM
So who knows Pascal here? Im guessing Storm will know it. Not sure about any one else.

I know a little.
I would guess Arta knows it since Delphi ~= Pascal.

Meh

Just a q. Is it possible to give pascal apps a GUI. Currentley any programs I make are in a command lines. I can chnage the background color etc Textbackground(4); clrscr; etc to make the full background a different color. But can it have a GUI?

K

Quote from: (V)eh on September 16, 2004, 12:15 PM
Just a q. Is it possible to give pascal apps a GUI. Currentley any programs I make are in a command lines. I can chnage the background color etc Textbackground(4); clrscr; etc to make the full background a different color. But can it have a GUI?

Delphi - Personal Edition costs $99, I think.
Kylix - like Delphi, but for Linux.  Certain editions free.

Adron

Quote from: (V)eh on September 16, 2004, 12:15 PM
Just a q. Is it possible to give pascal apps a GUI. Currentley any programs I make are in a command lines. I can chnage the background color etc Textbackground(4); clrscr; etc to make the full background a different color. But can it have a GUI?

Try using "Graph" ?

Meh

How close is Delphi related to Pascal?

Adron

Quote from: (V)eh on September 16, 2004, 02:23 PM
How close is Delphi related to Pascal?

Delphi = VB = VC with MFC
Pascal = Basic = C++


I.e. it's Pascal with the graphical goo of any bloated "click to make a gui" language.

Banana fanna fo fanna

VB = Basic + GUI + IDE
Delphi = Pascal + GUI + IDE

Arta

Delphi is just Object Pascal - pascal with OO support. The VCL is the MFC/VBish GUI creation tool. Its use is entirely optional. It does make GUI creation very, very easy though, and VCL components are compatible with Borland C++ Builder, which is kinda nice.

Adron

Quote from: Arta[vL] on September 16, 2004, 10:44 PM
Delphi is just Object Pascal - pascal with OO support. The VCL is the MFC/VBish GUI creation tool. Its use is entirely optional. It does make GUI creation very, very easy though, and VCL components are compatible with Borland C++ Builder, which is kinda nice.

Are there Delphi compilers for linux etc? I thought Delphi was just a particular suite for Borland.

Of course using the GUI parts of Delphi is optional, just like using forms is optional in VB applications. You could make an application in VB that has a console and no forms, it's just very rare to see someone doing that.

Typically you'll find that Delphi applications are similar in appearance to VB or MFC applications, except using Borland's classes.

Grok

Quote from: Arta[vL] on September 16, 2004, 10:44 PM
Delphi is just Object Pascal - pascal with OO support. The VCL is the MFC/VBish GUI creation tool. Its use is entirely optional. It does make GUI creation very, very easy though, and VCL components are compatible with Borland C++ Builder, which is kinda nice.

Hmm, are you sure?  I used Borland Turbo Pascal 5.5, and that had inheritance and polymorphism, as I remember it.  How is Delphi different other than more language features and more libraries and more IDE?

K

Quote from: Adron on September 17, 2004, 11:46 AM
Are there Delphi compilers for linux etc? I thought Delphi was just a particular suite for Borland.

Kylix is very much Delphi for linux, although I'm not sure if you can just take source code from one and and compile it on the other.

Arta

You can, assuming you use the VCL and not any native API.

Grok: I didn't know turbo 5.5 had support for classes. Delphi is the successor to Turbo, so it's probably just has more features, as you'd expect.

Adron: I've seen things coded in Delphi that just use API, and not the VCL - it's not as unusual as doing the equivalent in VB.

Meh

I use turbo 5.5 at college and Virtual Pascal 2.1 at home. Both look pretty much the same.

TangoFour

I've programmed with Turbo Pascal 6.0 (which had OO, and a DOS-based GUI library called Turbo Vision), and about 4 different Delphi versions (last being 6)

Stopped using it when I learnt Java in my first year of Computer Science

ctype

I started learning Pascal about 4 months before I started college (yes, with Meh) and I found it pretty easy learning on my own, from web tutorials. I'd say it's definetly a language anyone should know, especially if you plan on learning BASIC afterwards.