Einzelnen Beitrag anzeigen

alzaimar
(Moderator)

Registriert seit: 6. Mai 2005
Ort: Berlin
4.956 Beiträge
 
Delphi 2007 Enterprise
 
#6

Re: Neuer Delphi Language Guide von Embarcadero

  Alt 8. Jan 2010, 05:58
Du musst aber auch richtig lesen: Die Reden von Offset. Und wenn ich einen String als Zeiger ansehe, dann ist das erste Zeichen eben bei Offset 0.

Ich hab aber auch einen:
Zitat:
As a shorter alternative, the ampersand (&) operator can be used to resolve ambiguities between identifiers and Delphi language reserved words. The & prevents a keyword from being parsed as a keyword (that is, a reserved word). If you encounter a method or type that is the same name as a Delphi keyword, you can omit the namespace specification if you prefix the identifier name with an ampersand. But when you are declaring an identifier that has the same name as a keyword, you must use the &:
Delphi-Quellcode:
type
 &Type = Integer;
 // Prefix with '&' is ok.
Motto: "Wir basteln uns eine Frickelsprache".

...

Zitat:
Comments that are alike cannot be nested. For instance, {{}} will not work, but (*{}*)will. This latter form is useful for commenting out sections of code that also contain comments.
Blödsinn. Wenn ich also Code mit '(*... *)' aus kommentieren kann, der '{' enthält, dann kann ich diesen auskommentierten Code ja nicht weiter auskommentieren... Also lieber ganz sein lassen und Code mit '//' auskommentieren.
"Wenn ist das Nunstruck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput!"
(Monty Python "Joke Warefare")
  Mit Zitat antworten Zitat