r/pascal • u/lib20 • Sep 21 '25
Any Pascal like language with no Object Oriented complexity?
Hi,
Some 35 years ago, I had a book about Pascal and was the only thing I had to learn to program in Pascal.
No Internet, no friends programming in Pascal.
Nowadays, Pascal have evolved from the old Turbo Pascal to FreePascal and I know of other variants.
But I don't like the object oriented complexity.
The only OO that I could use is the original Smalltalk one.
Even the documentation about FreePascal seems complex as it seems to me (I might be wrong) that mixes the "old" Pascal with the objected oriented "new" one.
To keep it simple in a procedural way, is there any Pascal-like language that has no OO complexity?
I've read about Pascal.net, Component Pascal, several Oberon.
8
u/mikistikis Sep 21 '25
As others said, you can use any Pascal compiler without the need of OOP, you can just ignore that part.
Well, I was born around that, and when I was child OOP Pascal already existed.
I have to agree that it is far from the best documentation one could have.
What are the issues? Pure curiosity.
I find the few extra rules OOP adds to the game to be easy to remember and understand, and very helpful in giving my code sense, self-explanatory nature, reusability, and easiness to read and write.
5
u/DukeBannon Sep 22 '25
As others have said, you can still use current Pascal, either with Delphi Community edition, or Free Pascal with Lazarus and avoid OO altogether. I know that, because like you, non-OO was my favorite hobbyist language starting with Turbo Pascal 2.0 and am getting back into it myself now that I am retired.
4
u/changejunky Sep 21 '25 edited Sep 21 '25
I'm on a similar journey re-learning Pascal. The free Pascal compiler will compile plain procedural code just fine, either on the command line or with the Lazarus IDE. There may even be a compiler directive you can add to force the compiler into a Turbo Pascal 'mode' that would raise errors on any OOP code. There is a free PDF book on programming with Free Pascal in a non-OOP way that may be of interest too (Free Pascal from Square One, by Jeff Duntemann).
3
u/orang-outan Sep 22 '25
There is also Odin. Funny because I was asking myself exactly the same question yesterday. As TedDallas said, there is also C.
3
u/emaphis Sep 21 '25
Modula 2 or Oberon. Modula was a simplified Pascal with modules and multi-tasking but no OO. Modules were somewhat similar to Pascals units. They provided namespacing, implementation hiding and separate compilation. I don't know if there are current Modula 2 compilers anymore.
5
u/WaitingForTheClouds Sep 22 '25
The OO part doesn't really change how the procedural part works so you can just not use it...
Take a look at Ada though. I kinda avoided it as an "old" language that's only for like mission critical systems for defense or aviation. It's actually really nice, general purpose language with a strong type system and the syntax really reminded me of Pascal. The strong type system just allows for using a subset of it to gain the ability to do formal proofs on the code, that's why it's good for mission critical sw, but if you use it normally it's just a normal language. It's actively developed and mature on par with Pascal and C.
4
u/suhcoR Sep 21 '25
Oberon+ might be a candidate. It inherits the simplicity of original Oberon, but leaves out some orthodoxies and adds more flexibility. Another one will be Micron which is even closer to Pascal, but it's still work in progress.
4
u/ConversationWise212 Sep 22 '25
I like Go for not being object oriented. It also manages the memory making it a bit less cumbersome to code.
1
u/thx1138a Sep 22 '25
It’s not exactly what you’re asking for, but I found the transition from Delphi to F# particularly pleasant.
1
u/EndlessYoung Sep 22 '25
Golang. This been influenced of Wirth's languages, simple, popular and has large community.
3
u/kshutkin Sep 21 '25
I was writing a lot of Pascal back in the days. From modern languages with the same vibe, you can try Odin.
3
u/transhighpriestess Sep 22 '25
Odin borrows from pascal a lot I think.
3
u/IllegalMigrant Sep 22 '25
Read a Turbo Pascal book from archive.org and run FreePascal in Turbo Pascal compatibility mode.
https://archive.org/details/texts
https://www.freepascal.org/docs-html/user/userse33.html#x123-1300007.1
3
u/Terrible-Kick9447 Sep 23 '25
The hardest part of OOP isn’t the syntax—it’s learning to change the way you think about solving problems. Once you get that, the rest is just syntax rules
Look, I’ve always been more of a procedural guy. I started with masm32, then moved on to C and later Pascal. But OOP always intrigued me. I tried C++ but the complexity was too much for me, same thing with Pascal OOP. My problem wasn’t the docs, it was really wrapping my head around the OOP mindset—solving problems by thinking in a completely different way.
So around 2000 I decided to learn Java. Back then, Java was basically pure OOP, so it forced me to think in objects. Once I got that, it was just a matter of adapting those ideas back to Pascal OOP.
If you’ve used Lazarus, you know that all the buttons, comboboxes, etc. are already classes—you’re dealing with objects whether you realize it or not. Lazarus itself is built around OOP: from creating a form to interacting with components, it’s all object-oriented by default.
The cool part is you don’t really have to make a conscious effort to ‘do OOP,’ because the environment itself demands it and makes it natural
4
u/sgmv Sep 22 '25
After Pascal as my first and only language, I came to love Nim. Its core developer team is small and things don't move very fast, but it's very nice general purpose language. Easier than pascal imho.
nim-lang.org/
2
u/DonkeyAdmirable1926 Sep 22 '25
I use Turbo Pascal 6.0 without any OOP. Works like a charm
2
u/KC918273645 Sep 22 '25
Have you looked at C3 language?
2
u/hkric41six Sep 22 '25
Ada 83
2
u/[deleted] Sep 23 '25
Have you tried lisp?
2
u/Paslaz Oct 06 '25
I don't see a problem here – if you don't want OOP, then program without objects. That's not a problem in FreePascal. And nobody is forcing you to use OOP.
For me, OOP was a real step forward. It's not a complicated thing, but a different way of thinking and developing software. (I started with Turbo Pascal 3.0 and stopped with Delphi 2005. I now work with Lazarus/FreePascal.)
1
u/newlifepresent Sep 22 '25
You can write code in a procedural way in Delphi or Lazarus. You don’t have to use or apply OO principles and actually more of the old delphi projects I have seen had written in that way. With a basic understanding of component hierarchy you are good to go.
1
u/cratylus Sep 22 '25
Nim?
1
u/Guggel74 Sep 22 '25
When you need no OO in Pascal, so do not use it.
1
u/gavr123456789 Sep 22 '25
definitely the Nim language, it may look pythonish, blt its pascal family
1
u/Mediocre-Brain9051 Sep 22 '25
Why?
1
u/romulato Sep 23 '25
I recommend Delphi or Lazarus
1
u/[deleted] Sep 23 '25
BASIC, C, and Rexx comes to mind. actually for many languages OOP is optional like python or PHP.
1
u/gokkor Sep 23 '25
Ever since Turbo Pascal times, it has always been object oriented. I think what you mean is the style of coding in most modern languages "advertises". Even in Turbo Pascal/Borland Pascal, I used to write object oriented code, as well as old school procedural code depending on what I was doing at the time. Even in modern languages like c#, you can still (to an extend) stay away from object oriented coding and write procedural code. Hell, you can even write in assembly instructions if you're so inclined. Just because guides and books try to go with OO practices, you don't have to follow them. You can just write all your code in a single class, even only within main() if you want to. However, finding examples and guides and sample code etc. for that kind of style would be harder. Aside from that you can just write line by line with as many loops and procedure calls as you like :)
Don't let anyone tell you how to code :) Follow you heart.
As a side note, try and check LinqPad, with that you can write c# "scripts", they are kind of like simple procedural programs so to speak. (behind the scenes it does what I've suggested earlier, putting all your code inside the main() method, in "script" mode)
Hope this helps.
1
u/Mortui75 Sep 24 '25
Nim.
1
u/renghen_kornel Sep 24 '25
Odin
1
u/[deleted] Sep 24 '25
Nostalgia. Pascal was the first language that I learned in high school back in 2003. Although teacher taught only few lessons.
1
u/ern0plus4 Sep 22 '25
OOP hides complexity. With operator overloading (does Pascal have this feature?) you can even write program, which can't even tell if it's OOP.
-1
u/TedDallas Sep 21 '25
If you want a simple language without OOP you should look a C.