Autor Beitrag
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Di 08.03.05 16:10 
Ich wollt ma so nebenbei fragen was es alles für Kommentarzeiche gibt...
ich kenne eigentlich nur

ausblenden Quelltext
1:
2:
3:
//Text
{Text}
{*TExt*}


Rein intressenhalbe wollt ich mal fragen ob es noch mehr gibt und wenn ja welche


Moderiert von user profile iconTino: Topic aus Off Topic verschoben am Di 08.03.2005 um 22:51
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 08.03.05 16:12 
(* Kommentar *) kenne ich noch.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.03.05 16:13 
user profile iconLarus hat folgendes geschrieben:
Ich wollt ma so nebenbei fragen was es alles für Kommentarzeiche gibt...
ich kenne eigentlich nur

ausblenden Quelltext
1:
{*TExt*}					


Das gibt es nicht. Das Kommentarzeichen ist doch schon die geschweifte Klammer.

Es gibt aber noch
ausblenden Delphi-Quelltext
1:
/*...*/					
I.MacLeod
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 109



BeitragVerfasst: Di 08.03.05 16:15 
Das letzte sollte (*Text*) heißen, denke ich mal, oder? Ansonsten sind das unter Pascal alle. Mir fallen spontan noch

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
/* C*, CSS, Java */
/** 
 * Java (Javadoc)
 */
# PHP
' Basic
; idr. Assembler


ein

_________________
{$APPTYPE CONSOLE}uses SysUtils;const a='{$APPTYPE CONSOLE}uses SysUtils;const a=%s;begin write(Format(a,[#39+a+#39]))end.';begin write(Format(a,[#39+a+#39]))end.
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Di 08.03.05 16:16 
user profile iconLuckie hat folgendes geschrieben:

Es gibt aber noch
ausblenden Delphi-Quelltext
1:
/*...*/					


Das is html bzw php, in delphi geht das nicht.

mfg matze

_________________
si tacuisses, philosophus mansisses.
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Di 08.03.05 16:26 
Zitat:
There are several ways to construct comments:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
{ Text between a left brace and a right brace constitutes a comment. }
(* Text between a left-parenthesis-plus-asterisk and an 
   asterisk-plus-right-parenthesis also constitutes a comment. *)

// Any text between a double-slash and the end of the line constitutes a comment.

Comments that are alike cannot be nested. For instance, {{}} will not work, but (*{}*) will. This is useful for commenting out sections of code that also contain comments.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.03.05 19:25 
user profile iconmatze.de hat folgendes geschrieben:
user profile iconLuckie hat folgendes geschrieben:

Es gibt aber noch
ausblenden Delphi-Quelltext
1:
/*...*/					


Das is html bzw php, in delphi geht das nicht.

mfg matze

Mist, ich meine auch:
ausblenden Delphi-Quelltext
1:
(* ... *)					
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Di 08.03.05 19:50 
Jo die vielen sprachen immer :D is ja ned schlimm, man merkts ja spätestens im editor :)

mfg matze

_________________
si tacuisses, philosophus mansisses.
Larus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Di 08.03.05 22:14 
wieso kann es keine einheitlichen Zeichen geben :roll: :lol:
Phobeus
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1280

Linux (FC6), WinXP Pro (Box)
D6 Pers, D7 Pro, FPC 2.x
BeitragVerfasst: Di 08.03.05 22:32 
Wieso sprechen Menschen nicht die gleiche Sprache und sehen nicht alle gleich aus? ;)

_________________
"Menschen sterben nicht wenn man sie zu Grabe trägt, sondern wenn sie ihre Träume verlieren..."
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Mi 09.03.05 11:01 
user profile iconLarus hat folgendes geschrieben:
wieso kann es keine einheitlichen Zeichen geben :roll: :lol:


Es ist doch höchst nützlich, dass es verschiedene Arten von Kommentar-Markierungen gibt.

Alle Kommentare, die ich dauerhaft im Programm haben will, mache ich als Zeilenkommentar
ausblenden Quelltext
1:
// Das ist ein Kommentar					

Beim Test kann ich dann einen Block komplett auskommentieren, ohne dass ich die Zeilenkommentare anpassen muss.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  Connect;    // Verbindungsaufbau
{ >>> Bei Fehlersuche überspringen 
  Download;   // Daten abholen
  Import;     // Datenabholen
}

  Disconnect; // Verbindungsabbau