Quote:
Originally Posted by
Adak
I haven't seen that with Pascal. Most of the code examples showing an algorithm that I've seen have been in Pascal, and they're always showing great indentation.
Well, ok... maybe I've invented my own style and now I can't uninvent it... LOL.
In any case I think you've seen how I write source... I've been doing it that way for so long I find other formatting hard to read.
Quote:
Wait until you run into Python -- ho, ho, ho! Indentation is absolutely critical!
I have no intention of doing that.
Quote:
I thought there was a Free Pascal or Turbo Pascal compiler and IDE for it, out there, no?
Free Pascal is an incomplete Delphi clone and buggy as all git.
Turbo Pascal is 16 bit.
I'm thinking "just plain Pascal" 32 and 64 bit flavours and a nice set of headers and libs for windows.
Quote:
I liked Pascal, except for all the writelines. My experience with it amounted to helping my nephew write one program, for his college class, a decade ago. It was Turbo Pascal and it had an incremental compiler that was SO FAST to use. Even on my laptop, it compiled like a bat outta hell.
Yep... and no linking phase... straight from source to executable. Most often in a single compiler pass too...
There are 3 things I really liked about Pascal...
1) Real Strings (use = < > != etc. on strings!)
2) NOT case sensitive
3) Units allowed real easy scoping of functions and variables.
Sigh... Maybe we should look at creating a C extension???
Quote:
Wurth gave Pascal some smart features (like their strings). I never quite figured out why he left it to go on to some other language. Or, why Pascal didn't become more popular in programming, beyond academia.
Blame Borland. They were the world leaders with Pascal. They licensed up and then did the Turbo Pascal thing for a few versions (I still have copies on floppies someplace) then all of a sudden they announced a major breakthrough in "Object Oriented Programming", dropped all Pascal development, totally butchered the compiler and went on to introduce "Delphi"...
Wurth, reportedly threw his hands up in defeat and walked away. Oberon was his short lived successor to Pascal, but by then the whole mess was too far gone. Pascal was a dead horse.
I once took a Delphi Distro and got the underlying Pascal and libraries out from under it, hacked up the Run Time Libraries a bit and got it to re-compile itself... Wrote a few small programs just to check it out, but by then they had it so screwed up I never did get it to work properly.
Quote:
I wouldn't have a clue how to program a compiler. Or do you mean something that takes the Pascal code and changes it into it's equivalent in C and then uses a C compiler on that code?
Ummm no... If I wanted to do that, I'd just program in C... Which is what I'm up to and why.
(BTW... if you'd like to continue this maybe we should get a Mod to split the thread....)