https://wiki.freepascal.org/index.php?title=*/fi&feed=atom&action=history
*/fi - Revision history
2024-03-28T21:13:30Z
Revision history for this page on the wiki
MediaWiki 1.35.6
https://wiki.freepascal.org/index.php?title=*/fi&diff=153262&oldid=prev
Kai Burghardt: resolve Category: Pages using deprecated enclose attributes
2022-08-06T15:21:02Z
<p>resolve <a href="/index.php?title=Category:Pages_using_deprecated_enclose_attributes&action=edit&redlink=1" class="new" title="Category:Pages using deprecated enclose attributes (page does not exist)">Category: Pages using deprecated enclose attributes</a></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:21, 6 August 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{*}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{*}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[ASCII/fi|ASCII]]:ssa ja [[UTF-8]]:ssa desimaalisen merkkikoodin <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>42</syntaxhighlight> (tai [[Hexadecimal/fi|heksadesimaalisena]]<syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>> 2A </syntaxhighlight>) määritellään olevan <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>*</syntaxhighlight></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[ASCII/fi|ASCII]]:ssa ja [[UTF-8]]:ssa desimaalisen merkkikoodin <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>42</syntaxhighlight> (tai [[Hexadecimal/fi|heksadesimaalisena]]<syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>> 2A </syntaxhighlight>) määritellään olevan <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>*</syntaxhighlight></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div style="float:right; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">*</div></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div style="float:right; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">*</div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Standardi Pascal ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Standardi Pascal ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Symbolia <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>*</syntaxhighlight>, joka lausutaan “tähdeksi tai kertomerkiksi”, käytetään [[Pascal/fi|Pascal]]:ssa</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Symbolia <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>*</syntaxhighlight>, joka lausutaan “tähdeksi tai kertomerkiksi”, käytetään [[Pascal/fi|Pascal]]:ssa</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* numeroiden kertolaskuna tai</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* numeroiden kertolaskuna tai</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* [[Set|Joukkojen]] leikkauksen merkkinä.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* [[Set|Joukkojen]] leikkauksen merkkinä.</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l34" >Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Potenssiinkorotus ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Potenssiinkorotus ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Lisäksi [[FPC]]:ssä on kaksi peräkkäistä tähtimerkkiä <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>**</syntaxhighlight> </div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Lisäksi [[FPC]]:ssä on kaksi peräkkäistä tähtimerkkiä <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>**</syntaxhighlight> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sisältävä potenssiin korotus operaattori. Perusmäärittelyissä sitä ei kuitenkaan ole määritelty millekään tyypille. Sen sijaan sinulla on mahdollisuus tehdä se itse.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sisältävä potenssiin korotus operaattori. Perusmäärittelyissä sitä ei kuitenkaan ole määritelty millekään tyypille. Sen sijaan sinulla on mahdollisuus tehdä se itse.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l53" >Line 53:</td>
<td colspan="2" class="diff-lineno">Line 53:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Saat helposti saataville ylikuormitukset {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>math</syntaxhighlight>}} ja {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>matrix</syntaxhighlight> unit}} ne [[Uses|otetaan käyttöön]].</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Saat helposti saataville ylikuormitukset {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>math</syntaxhighlight>}} ja {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>matrix</syntaxhighlight> unit}} ne [[Uses|otetaan käyttöön]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Muut esiintymiset ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Muut esiintymiset ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Pascalin alkuvuosina kaikki tietokoneet eivät välttämättä tunteneet [[Comments/fi|kommenttien]] avaavaa ja sulkevaa alltosulkua <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>{ }</syntaxhighlight>.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Pascalin alkuvuosina kaikki tietokoneet eivät välttämättä tunteneet [[Comments/fi|kommenttien]] avaavaa ja sulkevaa alltosulkua <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>{ }</syntaxhighlight>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Jotta tällaisiin järjestelmiin olisi mahdollista saada lohko kommentteja vaihtoehtoisesta syntaksista, myös kahden merkin <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>(*</syntaxhighlight> ja <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>*)</syntaxhighlight></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Jotta tällaisiin järjestelmiin olisi mahdollista saada lohko kommentteja vaihtoehtoisesta syntaksista, myös kahden merkin <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>(*</syntaxhighlight> ja <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>*)</syntaxhighlight></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sallitaan, mutta niitä ei saa laittaa keskenään ristiin:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sallitaan, mutta niitä ei saa laittaa keskenään ristiin:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>(*</syntaxhighlight> ''täytyy'' löytää <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>*)</syntaxhighlight>, eikä huomio tällöin <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>}</syntaxhighlight> vaikka se lopettaa lohkokommentin myös.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>(*</syntaxhighlight> ''täytyy'' löytää <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>*)</syntaxhighlight>, eikä huomio tällöin <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>}</syntaxhighlight> vaikka se lopettaa lohkokommentin myös.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Jos C-kielen kaltaiset operaattorit sallittiin kääntäjädirektiivillä [[sCoperator|<syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>{$COperator on}</syntaxhighlight>]] niin voidaan käyttää syntaksin <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>i := i * n</syntaxhighlight> tilalla <syntaxhighlight lang="pascal" <del class="diffchange diffchange-inline">enclose="none"</del>>i *= n</syntaxhighlight>.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Jos C-kielen kaltaiset operaattorit sallittiin kääntäjädirektiivillä [[sCoperator|<syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>{$COperator on}</syntaxhighlight>]] niin voidaan käyttää syntaksin <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>i := i * n</syntaxhighlight> tilalla <syntaxhighlight lang="pascal" <ins class="diffchange diffchange-inline">inline</ins>>i *= n</syntaxhighlight>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Mutta tekemällä näin, poistut Pascalin pääsuunnasta. Koodi toimii teknisesti, mutta matemaattisesti se tulee vääräksi.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Mutta tekemällä näin, poistut Pascalin pääsuunnasta. Koodi toimii teknisesti, mutta matemaattisesti se tulee vääräksi.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Symbols}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Symbols}}</div></td></tr>
</table>
Kai Burghardt
https://wiki.freepascal.org/index.php?title=*/fi&diff=120684&oldid=prev
Djzepi: Created page with "{{*}} ASCII:ssa ja UTF-8:ssa desimaalisen merkkikoodin <syntaxhighlight lang="pascal" enclose="none">42</syntaxhighlight> (tai Hexadecimal/fi|heksadesimaal..."
2018-10-27T17:58:57Z
<p>Created page with "{{*}} <a href="/ASCII/fi" title="ASCII/fi">ASCII</a>:ssa ja <a href="/UTF-8" title="UTF-8">UTF-8</a>:ssa desimaalisen merkkikoodin <syntaxhighlight lang="pascal" enclose="none">42</syntaxhighlight> (tai Hexadecimal/fi|heksadesimaal..."</p>
<p><b>New page</b></p><div>{{*}}<br />
<br />
[[ASCII/fi|ASCII]]:ssa ja [[UTF-8]]:ssa desimaalisen merkkikoodin <syntaxhighlight lang="pascal" enclose="none">42</syntaxhighlight> (tai [[Hexadecimal/fi|heksadesimaalisena]]<syntaxhighlight lang="pascal" enclose="none"> 2A </syntaxhighlight>) määritellään olevan <syntaxhighlight lang="pascal" enclose="none">*</syntaxhighlight><br />
<br />
<div style="float:right; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">*</div><br />
<br />
== Standardi Pascal ==<br />
Symbolia <syntaxhighlight lang="pascal" enclose="none">*</syntaxhighlight>, joka lausutaan “tähdeksi tai kertomerkiksi”, käytetään [[Pascal/fi|Pascal]]:ssa<br />
* numeroiden kertolaskuna tai<br />
* [[Set|Joukkojen]] leikkauksen merkkinä.<br />
<br />
<syntaxhighlight lang="pascal" highlight="13-15,17,18"><br />
program asteriskDemo(input, output, stderr);<br />
<br />
type<br />
day = (monday, tuesday, wednesday,<br />
thursday, friday, saturday, sunday);<br />
<br />
var<br />
i: longint;<br />
n: real;<br />
m: set of day;<br />
<br />
begin<br />
// kertolasku operaattori<br />
i := 6 * 7; // i saa arvokseen 42<br />
n := 6.0 * 7.0; // n saa arvokseen 42.0<br />
<br />
// leikkaus operaattori<br />
m := [saturday, sunday] * [sunday, monday];<br />
// m on nyt {sunday}<br />
end.<br />
</syntaxhighlight><br />
<br />
== Potenssiinkorotus ==<br />
Lisäksi [[FPC]]:ssä on kaksi peräkkäistä tähtimerkkiä <syntaxhighlight lang="pascal" enclose="none">**</syntaxhighlight> <br />
sisältävä potenssiin korotus operaattori. Perusmäärittelyissä sitä ei kuitenkaan ole määritelty millekään tyypille. Sen sijaan sinulla on mahdollisuus tehdä se itse.<br />
<br />
<syntaxhighlight lang="pascal" highlight="6-9,12"><br />
program exponentiation(input, output, stderr);<br />
<br />
// laitetaan operaattorin ylikuormitus saataville<br />
{$mode objfpc}<br />
<br />
operator ** (const base: integer; const exponent: integer): integer;<br />
begin<br />
result := trunc(exp(ln(base) * exponent));<br />
end;<br />
<br />
begin<br />
writeLn(2 ** 10); // tulostaa 1024<br />
end.<br />
</syntaxhighlight><br />
<br />
Saat helposti saataville ylikuormitukset {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" enclose="none">math</syntaxhighlight>}} ja {{Doc|package=RTL|unit=math|text=<syntaxhighlight lang="pascal" enclose="none">matrix</syntaxhighlight> unit}} ne [[Uses|otetaan käyttöön]].<br />
<br />
== Muut esiintymiset ==<br />
Pascalin alkuvuosina kaikki tietokoneet eivät välttämättä tunteneet [[Comments/fi|kommenttien]] avaavaa ja sulkevaa alltosulkua <syntaxhighlight lang="pascal" enclose="none">{ }</syntaxhighlight>.<br />
Jotta tällaisiin järjestelmiin olisi mahdollista saada lohko kommentteja vaihtoehtoisesta syntaksista, myös kahden merkin <syntaxhighlight lang="pascal" enclose="none">(*</syntaxhighlight> ja <syntaxhighlight lang="pascal" enclose="none">*)</syntaxhighlight><br />
sallitaan, mutta niitä ei saa laittaa keskenään ristiin:<br />
<syntaxhighlight lang="pascal" enclose="none">(*</syntaxhighlight> ''täytyy'' löytää <syntaxhighlight lang="pascal" enclose="none">*)</syntaxhighlight>, eikä huomio tällöin <syntaxhighlight lang="pascal" enclose="none">}</syntaxhighlight> vaikka se lopettaa lohkokommentin myös.<br />
<br />
Jos C-kielen kaltaiset operaattorit sallittiin kääntäjädirektiivillä [[sCoperator|<syntaxhighlight lang="pascal" enclose="none">{$COperator on}</syntaxhighlight>]] niin voidaan käyttää syntaksin <syntaxhighlight lang="pascal" enclose="none">i := i * n</syntaxhighlight> tilalla <syntaxhighlight lang="pascal" enclose="none">i *= n</syntaxhighlight>.<br />
Mutta tekemällä näin, poistut Pascalin pääsuunnasta. Koodi toimii teknisesti, mutta matemaattisesti se tulee vääräksi.<br />
<br />
{{Symbols}}</div>
Djzepi