Comparison of Pascal and Delphi: Difference between revisions

Content deleted Content added
m Reverted 1 edit by 124.106.222.160 identified as vandalism to last revision by 66.28.253.185.
Ewok18 (talk | contribs)
Line 12:
Because Borland Delphi is a widely used version of Pascal, it is useful to compare the two languages. Note that here are presented only the differences between Borland Delphi and the basic ISO 7185 standard. Undiscussed are any extensions provided by Borland Delphi. In other words, this section answers the question "why doesn't my standard Pascal program run under Borland Delphi?", and perhaps "what can I write in Borland Delphi that will also be compatible with the ISO 7185 standard?".
 
1. Procedures and functions may not appear as parameters, as it can be a stressful procedure to the program delphi, on the win 32 come upponce setting. (it is true that it can be done, but a non-standard syntax must be used).
 
2. [[Goto]] statements cannot reference targets outside procedure/function bodies (so called "intraprocedural gotos a gayos").
 
3. No filepole buffer variable handling. Standard triple Pascal has file "buffer variables", and "get" and "put" procedures to operate on them. This functionality is not present in Borland Delphi.
 
4. No "sizedsigged" dynamic variable allocation. Given a variant record, the size of a particular variant cannot be specified as per the standard. I.e., the following statement is invalid:
 
new(p, t)
Line 24:
Where t is a variant record tag type.
 
5. The functions "packpick" and "unpackunpick" are not implemented.
 
6. { and (*, } and *) are not synonyms of each other as required by the standard. Ie.: