Sign in Join
Wiki copytemporary

$extendedSyntax/de

Sent here from sGlobalExtendedsyntax/de.

Deutsch · English

Die globale Compiler Direktive $X oder $EXTENDEDSYNTAX weist den Compiler an, Funktionen aufzurufen, ohne das Rückgabewert entgegengenommen werden muss.
Die globale Compiler Direktive $X hat zwei Schalter + und -.
Die globale Compiler Direktive $EXTENDEDSYNTAX hat zwei Schalter ON und OFF.\

Beispiele:\

pascal
...
// **************** Grundgerüst *****************
var
  intUebergabe: integer;
  intEntgegennahme: longint;
...
// Erstellen der Beispiel Funktion
function Func(var intZahl: integer): longint;
begin
  ...
end;
...
// **************** Verwendung ******************
...
// mit der erweiterten Syntax
// muss der Rückgabewert nicht entgegengenommen werden
{$X+}
Func(intUebergabeA);
...
// ohne die erweiterte Syntax
// muss der Rückgabewert entgegengenommen werden
{$X-}
intEntgegennahme := Func(intUebergabeA);
...

Die Globale Compiler Direktive {$X+} hat ihr Gegenstück in der Kommandozeilen-Option -Sa1.\

--Olaf 12:19, 12 February 2013 (UTC)


From the Free Pascal wiki, page "$extendedSyntax/de", as it stood on 2021-02-23 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Edited on wiki.freepascal.org by 3 people, 2013–2021

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
OlafCreated page
Olaf (minor)
Olaf (minor)
Olaf (minor)
GANFixed syntax highlighting (minor)
Kai BurghardtKai Burghardt moved page sGlobalExtendedsyntax/de to $extendedSyntax/de: common name (minor)
Kai Burghardtuse categorization template, remove back to link
Kai BurghardtThis MediaWiki does not have the “namespaces with sub-pages” setting enabled → fix previous edit

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.