https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Prozedur_%28Programmierung%29 Prozedur (Programmierung) - Versionsgeschichte 2025-07-03T06:30:29Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.7 https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=256992951&oldid=prev SchlurcherBot: Bot: http → https 2025-06-14T22:49:15Z <p>Bot: http → https</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 15. Juni 2025, 00:49 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 4:</td> <td colspan="2" class="diff-lineno">Zeile 4:</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt; In der [[Terminologie]] des C-Standards heißen Unterprogramme 'Funktion', unabhängig davon, ob das aufgerufene Unterprogramm einen Rückgabewert ermittelt oder ob der Rückgabewert verwendet wird.&lt;ref&gt;{{Internetquelle |url=<del style="font-weight: bold; text-decoration: none;">http</del>://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt; In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</div></td> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt; In der [[Terminologie]] des C-Standards heißen Unterprogramme 'Funktion', unabhängig davon, ob das aufgerufene Unterprogramm einen Rückgabewert ermittelt oder ob der Rückgabewert verwendet wird.&lt;ref&gt;{{Internetquelle |url=<ins style="font-weight: bold; text-decoration: none;">https</ins>://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt; In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Nach anderer Definition kann eine Prozedur im Unterschied zu einer [[Funktion (Programmierung)|Funktion]], die genau einen [[Funktion (Mathematik)|Funktionswert]] als Rückgabewert liefert, ihre Ergebnisse nur indirekt zurückgeben, also über [[Globale Variable|globale Variablen]] oder über [[Referenzparameter]] im aufrufenden Programm.&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=<del style="font-weight: bold; text-decoration: none;">http</del>://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>Nach anderer Definition kann eine Prozedur im Unterschied zu einer [[Funktion (Programmierung)|Funktion]], die genau einen [[Funktion (Mathematik)|Funktionswert]] als Rückgabewert liefert, ihre Ergebnisse nur indirekt zurückgeben, also über [[Globale Variable|globale Variablen]] oder über [[Referenzparameter]] im aufrufenden Programm.&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=<ins style="font-weight: bold; text-decoration: none;">https</ins>://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;</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;"><br /></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;"><br /></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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Parameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern, um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht direkt beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Parameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern, um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht direkt beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> </tr> </table> SchlurcherBot https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=256766820&oldid=prev Thomas Dresler: Komma vor „sondern“, „indem“, „wobei“ etc. 2025-06-07T08:32:38Z <p>Komma vor „sondern“, „indem“, „wobei“ etc.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 7. Juni 2025, 10:32 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 8:</td> <td colspan="2" class="diff-lineno">Zeile 8:</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>Nach anderer Definition kann eine Prozedur im Unterschied zu einer [[Funktion (Programmierung)|Funktion]], die genau einen [[Funktion (Mathematik)|Funktionswert]] als Rückgabewert liefert, ihre Ergebnisse nur indirekt zurückgeben, also über [[Globale Variable|globale Variablen]] oder über [[Referenzparameter]] im aufrufenden Programm.&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;</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>Nach anderer Definition kann eine Prozedur im Unterschied zu einer [[Funktion (Programmierung)|Funktion]], die genau einen [[Funktion (Mathematik)|Funktionswert]] als Rückgabewert liefert, ihre Ergebnisse nur indirekt zurückgeben, also über [[Globale Variable|globale Variablen]] oder über [[Referenzparameter]] im aufrufenden Programm.&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Parameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht direkt beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Parameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern<ins style="font-weight: bold; text-decoration: none;">,</ins> um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht direkt beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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;"><br /></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;"><br /></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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</div></td> </tr> </table> Thomas Dresler https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=256550404&oldid=prev Bautsch: /* Terminologie und Details unterschiedlich */ Rückgabewert, Rekursion, Formatierung, Kleinkram 2025-06-01T07:01:12Z <p><span class="autocomment">Terminologie und Details unterschiedlich: </span> Rückgabewert, Rekursion, Formatierung, Kleinkram</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juni 2025, 09:01 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 4:</td> <td colspan="2" class="diff-lineno">Zeile 4:</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;<ins style="font-weight: bold; text-decoration: none;"> In der [[Terminologie]] des C-Standards heißen Unterprogramme 'Funktion', unabhängig davon, ob das aufgerufene Unterprogramm einen Rückgabewert ermittelt oder ob der Rückgabewert verwendet wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt; In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</ins></div></td> </tr> <tr> <td class="diff-marker" data-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>In der [[Terminologie]] des C-Standards heißt jedwedes Unterprogramm 'Funktion', unabhängig davon, ob dessen Aufruf zu einem Wert ausgewertet wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker" data-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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</div></td> <td colspan="2" class="diff-empty diff-side-added"></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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;<del style="font-weight: bold; text-decoration: none;"> liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über [[Referenzparameter]] im rufenden Programm).</del></div></td> <td class="diff-marker" data-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>Nach<ins style="font-weight: bold; text-decoration: none;"> anderer Definition kann eine Prozedur im Unterschied zu einer [[Funktion (Programmierung)|Funktion]], die genau einen [[Funktion (Mathematik)|Funktionswert]] als Rückgabewert liefert, ihre Ergebnisse nur indirekt zurückgeben, also über [[Globale Variable|globale Variablen]] oder über [[Referenzparameter]] im aufrufenden Programm.</ins>&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt;</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|<del style="font-weight: bold; text-decoration: none;">Aufrufparameter</del>]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|<ins style="font-weight: bold; text-decoration: none;">Parameter</ins>]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern um dort Ergebnisse zu speichern. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht<ins style="font-weight: bold; text-decoration: none;"> direkt</ins> beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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;"><br /></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;"><br /></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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</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;"><br /></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;"><br /></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>''Abweichende Bedeutungen:'' In [[COBOL]] sind Prozeduren lediglich die in der ‚Procedure Division‘ formulierten, durch ‚Paragraphen‘ benennbaren Anweisungen (Befehle), unabhängig davon, ob sie als [[Unterroutine]] verwendet werden oder nicht. Auch in [[PL/I]] bezeichnet man die im Befehlsteil des [[Quelltext]]es enthaltenen – prozedural (= ‚fortschreitend‘) zu verarbeitenden – Anweisungen als „Prozeduren“.</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>''Abweichende Bedeutungen:'' In [[COBOL]] sind Prozeduren lediglich die in der ‚Procedure Division‘ formulierten, durch ‚Paragraphen‘ benennbaren Anweisungen (Befehle), unabhängig davon, ob sie als [[Unterroutine]] verwendet werden oder nicht. Auch in [[PL/I]] bezeichnet man die im Befehlsteil des [[Quelltext]]es enthaltenen – prozedural (= ‚fortschreitend‘) zu verarbeitenden – Anweisungen als „Prozeduren“.</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-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;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-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>In vielen Programmiersprachen ist der [[Rekursive Programmierung|rekursive Aufruf]] einer Prozedur durch sie selbst zulässig.&lt;ref&gt;{{Internetquelle |url=https://www.studysmarter.de/schule/informatik/algorithmen-und-datenstrukturen/rekursion/ |titel=Rekursion: Definition, Formel und Funktion |sprache=de-DE |abruf=2025-06-01}}&lt;/ref&gt;</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;"><br /></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;"><br /></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>== Beispiele ==</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>== Beispiele ==</div></td> </tr> </table> Bautsch https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=256550301&oldid=prev Invisigoth67: typo 2025-06-01T06:56:44Z <p>typo</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juni 2025, 08:56 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 5:</td> <td colspan="2" class="diff-lineno">Zeile 5:</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;"><br /></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;"><br /></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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker" data-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>In der [[Terminologie]] des C-Standards <del style="font-weight: bold; text-decoration: none;">heisst</del> jedwedes Unterprogramm 'Funktion', unabhängig davon, ob dessen Aufruf zu einem Wert ausgewertet wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>In der [[Terminologie]] des C-Standards <ins style="font-weight: bold; text-decoration: none;">heißt</ins> jedwedes Unterprogramm 'Funktion', unabhängig davon, ob dessen Aufruf zu einem Wert ausgewertet wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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;"><br /></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;"><br /></td> </tr> </table> Invisigoth67 https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=256546045&oldid=prev 95.222.82.97: /* Terminologie und Details unterschiedlich */ Unterschied: Name - sein; Beziehung nennen; abstellen?! beispielsweise 7?! Que! 2025-06-01T01:31:33Z <p><span class="autocomment">Terminologie und Details unterschiedlich: </span> Unterschied: Name - sein; Beziehung nennen; abstellen?! beispielsweise 7?! Que!</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juni 2025, 03:31 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 5:</td> <td colspan="2" class="diff-lineno">Zeile 5:</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;"><br /></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;"><br /></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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker" data-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>In der [[Terminologie]] des C-Standards <del style="font-weight: bold; text-decoration: none;">ist</del> jedwedes Unterprogramm <del style="font-weight: bold; text-decoration: none;">eine </del>Funktion, unabhängig davon, ob <del style="font-weight: bold; text-decoration: none;">ein</del> Wert <del style="font-weight: bold; text-decoration: none;">zurückgeliefert</del> wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>In der [[Terminologie]] des C-Standards <ins style="font-weight: bold; text-decoration: none;">heisst</ins> jedwedes Unterprogramm <ins style="font-weight: bold; text-decoration: none;">'</ins>Funktion<ins style="font-weight: bold; text-decoration: none;">'</ins>, unabhängig davon, ob <ins style="font-weight: bold; text-decoration: none;">dessen Aufruf zu einem</ins> Wert <ins style="font-weight: bold; text-decoration: none;">ausgewertet</ins> wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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;"><br /></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;"><br /></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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über [[Referenzparameter]] im rufenden Programm).</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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über [[Referenzparameter]] im rufenden Programm).</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern <del style="font-weight: bold; text-decoration: none;">bzw.</del> dort Ergebnisse <del style="font-weight: bold; text-decoration: none;">abstellen,</del> <del style="font-weight: bold; text-decoration: none;">beispielsweise einen Antwortcode</del>. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> <td class="diff-marker" data-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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern <ins style="font-weight: bold; text-decoration: none;">um</ins> dort Ergebnisse <ins style="font-weight: bold; text-decoration: none;">zu</ins> <ins style="font-weight: bold; text-decoration: none;">speichern</ins>. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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;"><br /></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;"><br /></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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</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>Ebenfalls sprachenabhängig können Prozeduren wie Funktionen in [[Programmbibliothek]]en zusammengestellt werden. Hierdurch besteht die Möglichkeit, eine Prozedur aus separaten Programmmodulen oder auch aus anderen [[Computerprogramm|Programmen]] heraus aufzurufen.</div></td> </tr> </table> 95.222.82.97 https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=248913816&oldid=prev Hofmannsl: /* growthexperiments-addlink-summary-summary:2|0|0 */ 2024-09-26T12:26:36Z <p>Linkvorschlag-Funktion: 2 Links hinzugefügt.</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 26. September 2024, 14:26 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 5:</td> <td colspan="2" class="diff-lineno">Zeile 5:</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;"><br /></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;"><br /></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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker" data-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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>In der <ins style="font-weight: bold; text-decoration: none;">[[</ins>Terminologie<ins style="font-weight: bold; text-decoration: none;">]]</ins> des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über Referenzparameter im rufenden Programm).</div></td> <td class="diff-marker" data-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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf |titel=Prozeduren-Funktionen-Methoden |hrsg=uni-frankfurt.de |format=PDF; 309&amp;nbsp;kB |abruf=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |hrsg=uni-koeln.de |abruf=2010-09-20}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über <ins style="font-weight: bold; text-decoration: none;">[[</ins>Referenzparameter<ins style="font-weight: bold; text-decoration: none;">]]</ins> im rufenden Programm).</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;"><br /></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;"><br /></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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern bzw. dort Ergebnisse abstellen, beispielsweise einen Antwortcode. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern bzw. dort Ergebnisse abstellen, beispielsweise einen Antwortcode. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> </tr> </table> Hofmannsl https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=242145565&oldid=prev KlartextJan: /* Einzelnachweise Link Archivierung*/ 2024-02-13T09:19:19Z <p><span class="autocomment">Einzelnachweise Link Archivierung</span></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 13. Februar 2024, 11:19 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 4:</td> <td colspan="2" class="diff-lineno">Zeile 4:</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot=<del style="font-weight: bold; text-decoration: none;">2022-12-29 20:31:04 InternetArchiveBot</del> |abruf=2010-09-20}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle |url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |titel=FORTRAN77-Standard, Kap. 15 |hrsg=fortran.com |sprache=en |offline=1 |archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15 |archiv-datum=2010-01-24 |archiv-bot= |abruf=2010-09-20}}&lt;/ref&gt;</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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard |hrsg=open-std.org |format=PDF; 3,8&amp;nbsp;MB |sprache=en |abruf=2010-09-12 |kommentar=nicht-normatives Arbeitsdokument}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</div></td> </tr> </table> KlartextJan https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=234780553&oldid=prev Lómelinde: :Kategorie:Wikipedia:Seite mit Syntaxhervorhebungsfehlern falsche Angabe lang="vb" siehe auch Hilfe:Syntaxhighlight#Unterstützte Sprachen wurde wohl ersetzt oder geändert zu vbscript? 2023-06-20T16:03:14Z <p><a href="/wiki/Kategorie:Wikipedia:Seite_mit_Syntaxhervorhebungsfehlern" title="Kategorie:Wikipedia:Seite mit Syntaxhervorhebungsfehlern">Kategorie:Wikipedia:Seite mit Syntaxhervorhebungsfehlern</a> falsche Angabe lang=&quot;vb&quot; siehe auch <a href="/wiki/Hilfe:Syntaxhighlight#Unterstützte_Sprachen" title="Hilfe:Syntaxhighlight">Hilfe:Syntaxhighlight#Unterstützte Sprachen</a> wurde wohl ersetzt oder geändert zu vbscript?</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 20. Juni 2023, 18:03 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 4:</td> <td colspan="2" class="diff-lineno">Zeile 4:</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle|url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15|titel=FORTRAN77-Standard, Kap. 15|hrsg=fortran.com|sprache=en|<del style="font-weight: bold; text-decoration: none;">zugriff</del>=<del style="font-weight: bold; text-decoration: none;">2010-09-20</del>|archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15|archiv-datum=2010-01-24<del style="font-weight: bold; text-decoration: none;">|offline=ja</del>|archiv-bot=2022-12-29 20:31:04 InternetArchiveBot}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle<ins style="font-weight: bold; text-decoration: none;"> </ins>|url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15<ins style="font-weight: bold; text-decoration: none;"> </ins>|titel=FORTRAN77-Standard, Kap. 15<ins style="font-weight: bold; text-decoration: none;"> </ins>|hrsg=fortran.com<ins style="font-weight: bold; text-decoration: none;"> </ins>|sprache=en<ins style="font-weight: bold; text-decoration: none;"> </ins>|<ins style="font-weight: bold; text-decoration: none;">offline</ins>=<ins style="font-weight: bold; text-decoration: none;">1 </ins>|archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15<ins style="font-weight: bold; text-decoration: none;"> </ins>|archiv-datum=2010-01-24<ins style="font-weight: bold; text-decoration: none;"> </ins>|archiv-bot=2022-12-29 20:31:04 InternetArchiveBot<ins style="font-weight: bold; text-decoration: none;"> |abruf=2010-09-20</ins>}}&lt;/ref&gt;</div></td> </tr> <tr> <td class="diff-marker" data-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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |<del style="font-weight: bold; text-decoration: none;"> </del>url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |<del style="font-weight: bold; text-decoration: none;"> </del>titel=C99-Standard|hrsg=open-std.org<del style="font-weight: bold; text-decoration: none;">|</del> format=PDF; 3,8&amp;nbsp;MB|sprache=en<del style="font-weight: bold; text-decoration: none;">|kommentar=nicht-normatives</del> <del style="font-weight: bold; text-decoration: none;">Arbeitsdokument</del>|<del style="font-weight: bold; text-decoration: none;">zugriff</del>=2010-09-12}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle |url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf |titel=C99-Standard<ins style="font-weight: bold; text-decoration: none;"> </ins>|hrsg=open-std.org <ins style="font-weight: bold; text-decoration: none;">|</ins>format=PDF; 3,8&amp;nbsp;MB<ins style="font-weight: bold; text-decoration: none;"> </ins>|sprache=en |<ins style="font-weight: bold; text-decoration: none;">abruf</ins>=2010-09-12<ins style="font-weight: bold; text-decoration: none;"> |kommentar=nicht-normatives Arbeitsdokument</ins>}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>Nach&lt;ref&gt;{{Internetquelle |<del style="font-weight: bold; text-decoration: none;"> </del>url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf|<del style="font-weight: bold; text-decoration: none;"> </del>titel=Prozeduren-Funktionen-Methoden|hrsg=uni-frankfurt.de|format=PDF; 309&amp;nbsp;kB|<del style="font-weight: bold; text-decoration: none;">zugriff</del>=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |<del style="font-weight: bold; text-decoration: none;"> </del>url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |<del style="font-weight: bold; text-decoration: none;"> </del>titel=Prozedurale Abstraktion, Funktionen | <del style="font-weight: bold; text-decoration: none;">zugriff</del>=2010-09-20<del style="font-weight: bold; text-decoration: none;">| hrsg=uni-koeln.de</del>}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über Referenzparameter im rufenden Programm).</div></td> <td class="diff-marker" data-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>Nach&lt;ref&gt;{{Internetquelle |url=http://www.gdv.informatik.uni-frankfurt.de/lehre/ws2005/PRG1/Folien/V07-Prozeduren-Funktionen-Methoden.pdf<ins style="font-weight: bold; text-decoration: none;"> </ins>|titel=Prozeduren-Funktionen-Methoden<ins style="font-weight: bold; text-decoration: none;"> </ins>|hrsg=uni-frankfurt.de<ins style="font-weight: bold; text-decoration: none;"> </ins>|format=PDF; 309&amp;nbsp;kB<ins style="font-weight: bold; text-decoration: none;"> </ins>|<ins style="font-weight: bold; text-decoration: none;">abruf</ins>=2015-12-01}}&lt;/ref&gt;&lt;ref&gt;{{Internetquelle |url=http://www.uni-koeln.de/rrzk/kurse/unterlagen/java/javaref/funcs/index.htm |titel=Prozedurale Abstraktion, Funktionen |<ins style="font-weight: bold; text-decoration: none;">hrsg=uni-koeln.de</ins> <ins style="font-weight: bold; text-decoration: none;">|abruf</ins>=2010-09-20}}&lt;/ref&gt; liefert eine Prozedur im Unterschied zur [[Funktion (Programmierung)|Funktion]] (die genau einen Rückgabewert als ''direktes'' Ergebnis liefert) ihre Ergebnisse nur ''indirekt'' (über interne Variablen oder über Referenzparameter im rufenden Programm).</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;"><br /></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;"><br /></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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern bzw. dort Ergebnisse abstellen, beispielsweise einen Antwortcode. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</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>Im Allgemeinen kann eine Prozedur [[Parameter (Informatik)|Aufrufparameter]] besitzen und auch die Werte von [[Variable (Programmierung)|Variablen]] ändern bzw. dort Ergebnisse abstellen, beispielsweise einen Antwortcode. Man unterscheidet hier zwischen lokalen (nur innerhalb der Prozedur gültigen und von außen nicht beeinflussbaren) und globalen (außerhalb der Prozedur deklarierten) Variablen. Das Ändern globaler Variablen innerhalb einer Prozedur kann die Übersichtlichkeit des Programms beeinträchtigen und die Fehlersuche erschweren.</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 41:</td> <td colspan="2" class="diff-lineno">Zeile 41:</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>=== BASIC ===</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>=== BASIC ===</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>Realisierung einer Prozedur in einer modernen [[BASIC]]-Variante (Subroutine ohne Rückgabewert):</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>Realisierung einer Prozedur in einer modernen [[BASIC]]-Variante (Subroutine ohne Rückgabewert):</div></td> </tr> <tr> <td class="diff-marker" data-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>&lt;syntaxhighlight lang="<del style="font-weight: bold; text-decoration: none;">vb</del>"&gt;</div></td> <td class="diff-marker" data-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>&lt;syntaxhighlight lang="<ins style="font-weight: bold; text-decoration: none;">vbscript</ins>"&gt;</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>public sub PunkteZeichnen(anzahl as Integer)</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>public sub PunkteZeichnen(anzahl as Integer)</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> for i as Integer = 1 to anzahl</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> for i as Integer = 1 to anzahl</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 49:</td> <td colspan="2" class="diff-lineno">Zeile 49:</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>&lt;/syntaxhighlight&gt;</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>&lt;/syntaxhighlight&gt;</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>Beispiel eines Methodenaufrufes in Basic:</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>Beispiel eines Methodenaufrufes in Basic:</div></td> </tr> <tr> <td class="diff-marker" data-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>&lt;syntaxhighlight lang="<del style="font-weight: bold; text-decoration: none;">vb</del>"&gt;</div></td> <td class="diff-marker" data-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>&lt;syntaxhighlight lang="<ins style="font-weight: bold; text-decoration: none;">vbscript</ins>"&gt;</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>call PunkteZeichnen(5)</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>call PunkteZeichnen(5)</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>&lt;/syntaxhighlight&gt;</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>&lt;/syntaxhighlight&gt;</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 87:</td> <td colspan="2" class="diff-lineno">Zeile 87:</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> for i:=0; i&lt;anzahl; i++ {</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> for i:=0; i&lt;anzahl; i++ {</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> fmt.Print(".")</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> fmt.Print(".")</div></td> </tr> <tr> <td class="diff-marker" data-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> }<del style="font-weight: bold; text-decoration: none;"> </del></div></td> <td class="diff-marker" data-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> }</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>}</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;"><div>&lt;/syntaxhighlight&gt;</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>&lt;/syntaxhighlight&gt;</div></td> </tr> </table> Lómelinde https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=229304878&oldid=prev InternetArchiveBot: InternetArchiveBot hat 1 Archivlink(s) ergänzt und 0 Link(s) als defekt/tot markiert.) #IABot (v2.0.9.2 2022-12-29T20:31:04Z <p><a href="/wiki/Benutzer:InternetArchiveBot" title="Benutzer:InternetArchiveBot">InternetArchiveBot</a> hat 1 Archivlink(s) ergänzt und 0 Link(s) als defekt/tot markiert.) #IABot (v2.0.9.2</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 29. Dezember 2022, 22:31 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 4:</td> <td colspan="2" class="diff-lineno">Zeile 4:</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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>Je nach [[Programmiersprache]] und [[Programmierparadigma]] gibt es Unterschiede in der Definition des Begriffs ''Prozedur'' und zur Abgrenzung zum Begriff der ''Funktion''.</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle|url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15|titel=FORTRAN77-Standard, Kap. 15|hrsg=fortran.com|sprache=en|zugriff=2010-09-20}}&lt;/ref&gt;</div></td> <td class="diff-marker" data-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>[[Fortran|FORTRAN77]] beispielsweise fasst unter ''procedures'' Funktionen und prozedurale Unterprogramme (''subroutines'') zusammen.&lt;ref&gt;{{Internetquelle|url=http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15|titel=FORTRAN77-Standard, Kap. 15|hrsg=fortran.com|sprache=en|zugriff=2010-09-20<ins style="font-weight: bold; text-decoration: none;">|archiv-url=https://web.archive.org/web/20100124143401/http://www.fortran.com/F77_std/rjcnf0001-sh-15.html#sh-15|archiv-datum=2010-01-24|offline=ja|archiv-bot=2022-12-29 20:31:04 InternetArchiveBot</ins>}}&lt;/ref&gt;</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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle | url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf | titel=C99-Standard|hrsg=open-std.org| format=PDF; 3,8&amp;nbsp;MB|sprache=en|kommentar=nicht-normatives Arbeitsdokument|zugriff=2010-09-12}}&lt;/ref&gt;</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>In der Terminologie des C-Standards ist jedwedes Unterprogramm eine Funktion, unabhängig davon, ob ein Wert zurückgeliefert wird.&lt;ref&gt;{{Internetquelle | url=http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf | titel=C99-Standard|hrsg=open-std.org| format=PDF; 3,8&amp;nbsp;MB|sprache=en|kommentar=nicht-normatives Arbeitsdokument|zugriff=2010-09-12}}&lt;/ref&gt;</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</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>In der [[Objektorientierte Programmierung|objektorientierten Programmierung]] werden beide Konzepte oft unter dem Sammelbegriff [[Methode (Programmierung)|Methode]] zusammengefasst.</div></td> </tr> </table> InternetArchiveBot https://de.wikipedia.org/w/index.php?title=Prozedur_(Programmierung)&diff=205120052&oldid=prev GünniX: Überschrift mit Fettdruck 2020-11-02T04:55:17Z <p>Überschrift mit Fettdruck</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 2. November 2020, 06:55 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 81:</td> <td colspan="2" class="diff-lineno">Zeile 81:</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>&lt;/syntaxhighlight&gt;</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>&lt;/syntaxhighlight&gt;</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;"><br /></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;"><br /></td> </tr> <tr> <td class="diff-marker" data-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>=== <del style="font-weight: bold; text-decoration: none;">'''</del>Go<del style="font-weight: bold; text-decoration: none;">'''</del> ===</div></td> <td class="diff-marker" data-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>=== Go ===</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>Realisierung einer Prozedur in Google [[Go (Programmiersprache)|Go]]:</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>Realisierung einer Prozedur in Google [[Go (Programmiersprache)|Go]]:</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>&lt;syntaxhighlight lang="go"&gt;</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>&lt;syntaxhighlight lang="go"&gt;</div></td> </tr> </table> GünniX