Sign in Join
Wiki copytemporary

Revision 4 of 4, by WikiArchive on 11-11-2026. The page as it is now.

$typedAddress/de

│ Deutsch (de) │

Zurück zu den lokalen Compilerdirektiven

$TYPEDADDRESS und $T

Beispiel für einen Fehler:

pascal
{$T+}  // schaltet den typisierten Pointer ein
    
    var
      I : Integer;
      P : PChar;
    
    begin
      P := @I;
      // Der Compiler gibt folgende Fehlermeldung aus:
      // … : Incompatible types: got "^SmallInt" expected "PChar"
    end

In der Standardeinstellung übergibt der Adressoperator einen untypisierten Pointer.

Beispiel:

pascal
{$T-}  // Die Standardeinstellung schaltet den typisierten Pointer aus
    
    var
      I : Integer;
      P : PChar;
    
    begin
      P := @I;
      // Der Compiler gibt keine Fehlermeldung aus
    end

— Olaf (talk) 09:05, 25 January 2013 (UTC)


From the Free Pascal wiki, page "$typedAddress/de", as the Internet Archive kept it on 2025-04-17, last changed on 2025-02-16. 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.