Recent

Author Topic: I am a begginer and I need help with Free Pascal.  (Read 16224 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12866
  • FPC developer.
Re: I am a begginer and I need help with Free Pascal.
« Reply #15 on: November 05, 2016, 03:57:08 pm »
textmode IDE has codefolding, but it is a bit beta. (it was being worked on when general development stalled).

One of the things I missed most migrating from textmode IDE to Lazarus was the ability to switch files with alt-1..9.

Fungus

  • Sr. Member
  • ****
  • Posts: 354
Re: I am a begginer and I need help with Free Pascal.
« Reply #16 on: November 05, 2016, 07:28:34 pm »
it sounds masochist to me.  :D

Or maby just nostalgic.. I remember the good old Turbo Pascal days, and some of the pics posted in this thread looks a lot like the recalled memories ;)

Thaddy

  • Hero Member
  • *****
  • Posts: 19181
  • Glad to be alive.
Re: I am a begginer and I need help with Free Pascal.
« Reply #17 on: November 05, 2016, 08:00:51 pm »
it sounds masochist to me.  :D

Or maby just nostalgic.. I remember the good old Turbo Pascal days, and some of the pics posted in this thread looks a lot like the recalled memories ;)
It's free. From the museum. I run it in dosbox, just for fun. Eat your heart out. It is still good as it is. (this one is 5.5, but TP 1.0 is also available)
objects are fine constructs. You can even initialize them with constructors.

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: I am a begginer and I need help with Free Pascal.
« Reply #18 on: November 06, 2016, 05:51:44 am »
Or maby just nostalgic.. I remember the good old Turbo Pascal days, and some of the pics posted in this thread looks a lot like the recalled memories ;)

I don't know about you, but I rarely code in nostalgic mode. I always try to code as profesionally, productively, effectively, and efficiently as possible. Even if I want to remember the old days, current FreePascal's IDE is quite similar enough to the old Turbo Pascal 7. I don't want to bother using the real Turbo Pascal 7, let alone the Turbo Pascal 5.5, eventhough I started using Pascal since Turbo Pascal 5.0 which is the version that started the Pascal's blue screen legend.  :)
-Bee-

A long time pascal lover.

Thaddy

  • Hero Member
  • *****
  • Posts: 19181
  • Glad to be alive.
Re: I am a begginer and I need help with Free Pascal.
« Reply #19 on: November 06, 2016, 07:32:22 am »
It is useful to test TP mode against TP of course.... 8-)
objects are fine constructs. You can even initialize them with constructors.

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: I am a begginer and I need help with Free Pascal.
« Reply #20 on: November 06, 2016, 11:36:23 am »
It is useful to test TP mode against TP of course.... 8-)

I thought TP mode is finished. Since Turbo Pascal has died many years ago and no longer developed. So, I wonder, what kind of test are you still doing with TP mode on current Free Pascal? What changes?
-Bee-

A long time pascal lover.

Thaddy

  • Hero Member
  • *****
  • Posts: 19181
  • Glad to be alive.
Re: I am a begginer and I need help with Free Pascal.
« Reply #21 on: November 06, 2016, 11:42:43 am »
I have a codebase that covers 32 years since 1984, if you count UCSD since 1981. Sometimes that code is still useful or insightful (because I used it in university for scientific problems) .
Also: TP mode is supported and at least once a week this forum get a question about old school style Pascal.
And... it's fun to play with dosbox. I also have WordPerfect running in it because I miss the underwater screen...
objects are fine constructs. You can even initialize them with constructors.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12866
  • FPC developer.
Re: I am a begginer and I need help with Free Pascal.
« Reply #22 on: November 06, 2016, 12:04:53 pm »
It is useful to test TP mode against TP of course.... 8-)

I thought TP mode is finished. Since Turbo Pascal has died many years ago and no longer developed. So, I wonder, what kind of test are you still doing with TP mode on current Free Pascal? What changes?

Pretty much. I haven't started BP to do work since +/- 2000-2003. In the early days I sometimes debugged with it. That said, at roughly the same time, I did get access to Delphi at work. Since I migrated to windows 8, most of my windowses became 64-bit, and I couldn't be bothered with an emulation.

However now 16-bit support is fairly new, I can imagine using BP to compare now.

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: I am a begginer and I need help with Free Pascal.
« Reply #23 on: November 06, 2016, 12:09:27 pm »
I have a codebase that covers 32 years since 1984, if you count UCSD since 1981. Sometimes that code is still useful or insightful (because I used it in university for scientific problems) .
Also: TP mode is supported and at least once a week this forum get a question about old school style Pascal.
And... it's fun to play with dosbox. I also have WordPerfect running in it because I miss the underwater screen...

I see. Well… clearly we have different kind of needs with Pascal. It's alright.  :)

In my local Pascal community, I seriously discourage the use of Turbo Pascal because it's a dead product and practically a dead Pascal variant. I can understand the need of TP mode in FPC to keep the legacy codes. But I don't see any benefits of using it (both TP and TP mode) for study or new development.

Instead, I highly encourage the use of modern Pascal, especially using FPC with either Delphi mode or FPC mode. Because I don't want new programmers see Pascal as an old and limited language by still letting them use Turbo Pascal (along with DOSBox). Pascal has been known as a dead language. Today's programmers have taken that for granted. I don't want us to support such false notion.

I want to show them Pascal is still alive and kicking. I want to show them that we can build anything on anything using (Free) Pascal. Desktop app, web app, mobile app, on Linux, Mac, Windows, anything… you name it. Those can't be done using Turbo Pascal, obviously.

You can even write Pascal program from within a browser without Pascal compiler installed on your local machine. Today is the age of cloud computing. Pascal is able to do that too! Like shown in the image below…


« Last Edit: November 06, 2016, 12:12:22 pm by bee »
-Bee-

A long time pascal lover.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12866
  • FPC developer.
Re: I am a begginer and I need help with Free Pascal.
« Reply #24 on: November 06, 2016, 01:02:33 pm »
Well, I ssh to my RPI and use the textmode IDE, so I'm both cloud and IoT compliant.

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: I am a begginer and I need help with Free Pascal.
« Reply #25 on: November 06, 2016, 01:30:33 pm »
Well, I ssh to my RPI and use the textmode IDE, so I'm both cloud and IoT compliant.
Yup, I do that too. Though I prefer Lazarus with mounted SFTP or git.  :)
-Bee-

A long time pascal lover.

Andrew25044

  • Newbie
  • Posts: 3
Re: I am a begginer and I need help with Free Pascal.
« Reply #26 on: November 06, 2016, 02:54:57 pm »
Thanks so much for the answers, but  the user rvk helped me the most. He told me a very simple solution and it worked really well, but I thank all of you for spending your time answering my question.
« Last Edit: November 06, 2016, 02:56:42 pm by Andrew25044 »

Fungus

  • Sr. Member
  • ****
  • Posts: 354
Re: I am a begginer and I need help with Free Pascal.
« Reply #27 on: November 06, 2016, 03:02:34 pm »
It's free. From the museum. I run it in dosbox, just for fun. Eat your heart out. It is still good as it is. (this one is 5.5, but TP 1.0 is also available)

Yeah, but sweet memories are better left unobscured since they may become sour elsehow ;) Do not know to what I should use DOS-code these days anyway, but I think my next console project for Linux may be coded with FPC's console editor :)

 

TinyPortal © 2005-2018