Valhalla Legends Archive

Programming => General Programming => Topic started by: Meh on September 13, 2004, 02:31 PM

Title: Pascal
Post by: Meh on September 13, 2004, 02:31 PM
I have started college and every wednesday we are being taught pascal ( :(). If anybody has any links to turoials it would be a great help. Thanks.
Title: Re:Pascal
Post by: Grok on September 13, 2004, 03:51 PM
Quote from: (V)eh on September 13, 2004, 02:31 PM
I have started college and every wednesday we are being taught pascal ( :(). If anybody has any links to turoials it would be a great help. Thanks.

I'm sorry, but if you cannot understand Pascal from your textbooks/instructor, you should become a business manager and plan on a career in middle management.
Title: Re:Pascal
Post by: Meh on September 14, 2004, 12:00 PM
No, it hasnt started yet. I was hoping if there were tutorials to go becide text books and instructors.
Title: Re:Pascal
Post by: Arta on September 14, 2004, 03:12 PM
Pascal is very easy. We used it in my high-school programming class. No one in the class had any trouble learning it, and there were people there who wouldn't know what a compiler was if it bit them.
Title: Re:Pascal
Post by: Adron on September 14, 2004, 05:05 PM
Quote from: Arta[vL] on September 14, 2004, 03:12 PM
Pascal is very easy. We used it in my high-school programming class. No one in the class had any trouble learning it, and there were people there who wouldn't know what a compiler was if it bit them.

I wouldn't know what a compiler was if it bit me.
Title: Re:Pascal
Post by: Arta on September 14, 2004, 06:48 PM
You've never programmed in Ada then!
Title: Re:Pascal
Post by: Adron on September 14, 2004, 07:54 PM
Quote from: Arta[vL] on September 14, 2004, 06:48 PM
You've never programmed in Ada then!

No, never
Title: Re:Pascal
Post by: Arta on September 15, 2004, 07:13 AM
It's evil.
Title: Re:Pascal
Post by: iago on September 15, 2004, 12:07 PM
Lmao!  You made me laugh out loud at work.  Especially Adron's first reponse.  Gold!

And yeah, Pascal is super easy.  I've never officially learned it, but I've read a lot of the code and it seemed quite straight forward.

Also, some distributions of Linux come with a Pascal => C converter that I forget what it's called.  But that just shows that Pascal isn't totally useless :)
Title: Re:Pascal
Post by: Meh on September 15, 2004, 12:24 PM
I prgrammed my first program today

Program James;
USES CRT;

Begin
WRITE('James is the Best');
READLN;
End.


I was the first to complete it. We also did a user input program but im too lazy to type it out and my code is at college.

EDIT --> Mistake with RIGHTLN should be READLN.
Title: Re:Pascal
Post by: Adron on September 15, 2004, 02:18 PM
Quote from: (V)eh on September 15, 2004, 12:24 PM
I prgrammed my first program today

Program James;
USES CRT;

Begin
WRITE('James is the Best');
RIGHTLN;
End.


I was the first to complete it. We also did a user input program but im too lazy to type it out and my code is at college.

rightln? not writeln?
Title: Re:Pascal
Post by: Banana fanna fo fanna on September 15, 2004, 09:32 PM
No, RIGHTLN. His program is about to exit the freeway.
Title: Re:Pascal
Post by: Meh on September 16, 2004, 02:55 AM
oops my mistake it should say READLN.
Title: Re:Pascal
Post by: Grok on September 16, 2004, 04:40 AM
Quote from: $t0rm on September 15, 2004, 09:32 PM
No, RIGHTLN. His program is about to exit the freeway.

Funny-of-the-week.
Title: Re:Pascal
Post by: Meh on September 16, 2004, 11:00 AM
So who knows Pascal here? Im guessing Storm will know it. Not sure about any one else.
Title: Re:Pascal
Post by: K on September 16, 2004, 11:59 AM
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.
Title: Re:Pascal
Post by: Meh 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?
Title: Re:Pascal
Post by: K on September 16, 2004, 02:14 PM
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 (http://www.borland.com/products/downloads/download_delphi.html) - Personal Edition costs $99, I think.
Kylix (http://www.borland.com/products/downloads/download_kylix.html) - like Delphi, but for Linux.  Certain editions free.
Title: Re:Pascal
Post by: Adron on September 16, 2004, 02:16 PM
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" ?
Title: Re:Pascal
Post by: Meh on September 16, 2004, 02:23 PM
How close is Delphi related to Pascal?
Title: Re:Pascal
Post by: Adron on September 16, 2004, 04:31 PM
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.
Title: Re:Pascal
Post by: Banana fanna fo fanna on September 16, 2004, 07:42 PM
VB = Basic + GUI + IDE
Delphi = Pascal + GUI + IDE
Title: Re:Pascal
Post by: Arta 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.
Title: Re:Pascal
Post by: Adron on September 17, 2004, 11:46 AM
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.
Title: Re:Pascal
Post by: Grok on September 17, 2004, 12:50 PM
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?
Title: Re:Pascal
Post by: K on September 17, 2004, 03:10 PM
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.
Title: Re:Pascal
Post by: Arta on September 18, 2004, 11:06 AM
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.
Title: Re:Pascal
Post by: Meh on September 18, 2004, 01:40 PM
I use turbo 5.5 at college and Virtual Pascal 2.1 at home. Both look pretty much the same.
Title: Re:Pascal
Post by: TangoFour on September 20, 2004, 08:56 AM
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
Title: Re: Pascal
Post by: ctype on October 24, 2004, 07:10 AM
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.