sPackenum/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: sPackenum/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Zurück zu den [[local compiler directives/de|lokalen Compilerdirektiven]].\ | |
| 2 | + | ||
| 3 | + | ==\$PACKENUM oder \$Z== Die Compilerdirektive \$PACKENUM weist den Compiler an, für das Speichern eines einzelnen Elements einer Aufzählung (Enumeration) eine Mindestmenge von Bytes zu verwenden.\ | |
| 4 | + | ||
| 5 | + | Der Standard für die minimale Speichergrösse eines einzelnen Elements einer Aufzählung im Arbeitsspeicher hängt vom Compilermodus ab.\ | |
| 6 | + | * In den Compiler Modi Delphi und TP ist die minimale Speichergrösse eines einzelnen Elements im Arbeitsspeicher 1 Byte. | |
| 7 | + | ||
| 8 | + | - Im Compiler Modus MacPas ist die minimale Speichergrösse eines einzelnen Elements im Arbeitsspeicher 2 Byte. | |
| 9 | + | - In allen anderen Compiler Modi ist die minimale Speichergrösse eines einzelnen Elements im Arbeitsspeicher 4 Byte. | |
| 10 | + | ||
| 11 | + | Alternativ zur Schreibweise {\$PACKENUM 1} usw. kann die die Schreibweise {\$Z1}, {\$Z2}, {\$Z4} verwendet werden.\ | |
| 12 | + | Die Schreibweise {\$Z+} entspricht der Schreibweise {\$Z 4}.\ | |
| 13 | + | Die Schreibweise {\$Z‑} entspricht der Schreibweise {\$Z 1}.\ | |
| 14 | + | ||
| 15 | + | Folgende Beispiele liefern das gleiche Ergebnis:\ | |
| 16 | + | ||
| 17 | + | {$PACKENUM 1} | |
| 18 | + | Type | |
| 19 | + | eTage = (Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samtag, Sonntag); | |
| 20 | + | ||
| 21 | + | {$Z1} | |
| 22 | + | Type | |
| 23 | + | eTage = (Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samtag, Sonntag); | |
| 24 | + | ||
| 25 | + | {$Z-} | |
| 26 | + | Type | |
| 27 | + | eTage = (Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samtag, Sonntag); | |
| 28 | + | ||
| 29 | + | --Olaf 09:00, 13 January 2013 (UTC) | |
| 30 | + | ||
| 31 | + | --- | |
| 32 | + | *From the Free Pascal wiki, page "sPackenum/de", as it stood on 2021-02-09 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](/wiki-contact).* | |
| 33 | + | Category: Free Pascal Programmers Guide/de |
