Linked by Thom Holwerda on Tue 1st May 2012 21:59 UTC
Thread beginning with comment 516691
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Comment by snorkel1
by Rugxulo on Wed 2nd May 2012 20:10
in reply to "RE: Comment by snorkel1"
Pascal is a compiled language with no garbage collection. C# is a garbage collected language that targets a VM. Yes, I can see why they are exactly the same.
FPC now has optional JVM target support. Also, don't forget that Pascal's cousin, Oberon, does have garbage collection. So it's not that far of a stretch.
"and I have Generics etc.
No, you have "kinds of generics". The FreePascal version is more like templates (and depending on compiler build can be quite broken in my experience) and the Delphi version depends on which flavour you mean. "
I could be wrong, but I think FPC now supports both kinds of generics (their own and the Delphi variant).




Member since:
2006-05-30
Pascal is a compiled language with no garbage collection. C# is a garbage collected language that targets a VM. <sarcasm> Yes, I can see why they are exactly the same. </sarcasm> You may as well have said "why don't they use Python" or some other random language. Object Pascal is something I did as a day job for over 10 years, I know enough to tell you that you are delusional.
You also don't even know basic facts about C# and the CLR, as proven by your next statement:
You prove you are clueless. Yes you do. Frequently. How do you import a function in a library in Borland's Object Pascal dialect?
procedure Foo(X: Integer); external 'BAR';
How do you do this in C#?
[DllImport("bar.dll")] void Foo( int X);
Or, if you are going to be pedantic and insist on Pascal, in Delphi Prism :
[DllImport("bar.dll")] procedure Foo(X: integer); external;
Yeah, so very different and so very hard. <sarcasm> Let's hate on P/Invoke because the syntax is just ridiculously complicated, yeah, impossible... </sarcasm>
No, you have "kinds of generics". The FreePascal version is more like templates (and depending on compiler build can be quite broken in my experience) and the Delphi version depends on which flavour you mean. Delphi Prism uses .Net, Delphi for Windows uses Borland/Codegear "version" and Delphi for Mac OS X and iOS uses FreePascal, which is not an exact analogue.