Comparison of Pascal and Delphi: Difference between revisions

Content deleted Content added
add some
add another source
Line 16:
 
=== Nested comments ===
Standard Pascal requires that the comment delimiters <syntaxhighlight lang="pascal" inline>{</syntaxhighlight> and the bigramm <syntaxhighlight lang="pascal" inline>(*</syntaxhighlight>, as well as <syntaxhighlight lang="pascal" inline>}</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>*)</syntaxhighlight> are synonymous to each other.<ref name="gpc_comments"/>
In Delphi, however, a block comment started by <syntaxhighlight lang="pascal" inline>{</syntaxhighlight> ''must'' be closed with a <syntaxhighlight lang="pascal" inline>}</syntaxhighlight>.<ref name="moore"/>
The bigramm <syntaxhighlight lang="pascal" inline>*)</syntaxhighlight> will only close any comment that started with <syntaxhighlight lang="pascal" inline>(*</syntaxhighlight>.<ref name="moore"/>
Line 203:
== References ==
<references>
<ref name="gpc_comments">{{cite web
| title = The GNU Pascal Manual
| first1 = Jan-Jaap
| last1 = van der Heijden
| first2 = Peter
| last2 = Gerwinski
| first3 = Frank
| last3 = Heckenbach
| first4 = Berend
| last4 = deBoer
| first5 = Dominik
| last5 = Freche
| first6 = Eike
| last6 = Lange
| first7 = Peter
| last7 = Lewis
| display-authors = etal
| at = A QuickStart Guide from Borland Pascal to GNU Pascal
| url = https://www.GNU-Pascal.de/gpc/Comments.html#Comments
| access-date = 2023-04-24
}}</ref>
<ref name="reagan">{{cite web
| title = Pascal Standards FAQ
Line 209 ⟶ 230:
| last = Reagan
| date = 1995-04-03
| url = http://pascalPascal-centralCentral.com/extpascal.html#anchor-6
| archive-url = https://web.archive.org/web/20210928162340/http://pascal-central.com/extpascal.html#anchor-6
| archive-date = 2021-09-28
Line 219 ⟶ 240:
| last = Moore
| date = 2022-12-02
| url = https://www.moorecadMooreCAD.com/standardpascal/pascalfaq.html#Q.%20What%20are%20the%20differences%20between%20Borland%20Del
| access-date = 2023-04-24
}}</ref>