Séparateur décimal
Pascal utilise le . (point) pour séparer les parties entière et fractionnaire dans un nombre décimal.
myReal := 6.28318
Au moins un chiffre devant le point est obligatoire. Le cas échéant, 0 comme partie entière ne doit pas être omise.
Les nombres notés avec une base de numération non décimale ne peuvent être noté de cette façon.
P.ex. la valeur numérique "un demi" ne peut pas être écrite comme %0.1 (% étant la préfixe indiquant la notation binaire.
Sélecteur de portée d'un identificateur
For structured data types the dot separates the data structure identifier from its individual components, i. e. methods or data fields.
program recordDemo(input, output, stderr);
uses
Linux;
var
info: TSysInfo;
begin
if sysInfo(@info) <> 0 then
begin
halt(1);
end;
writeLn('uptime: ', info.uptime, ' seconds');
with info do
begin
writeLn('total free: ', freeram, ' bytes');
end;
end.
Etendue
Two consecutive dots .. let you specify an ordinal type sub-range.
type
signumCodomain = -1..1;
This is the same as math.TValueSign.
Fin de module
The main block of any module, i. e. program, unit or library, has to be closed with an end “dot”:
program hiWorld(input, output, stderr);
begin
writeLn('Hi world!');
end.
It can be seen as an adoption of natural (written) languages, where a full stop marks an end of a sentence.
Anything else after the final end., assuming syntactical correctness, will be ignored by the compiler.
Espace de nom
Unit names containing dots create namespaces.
Valeur ASCII
In ASCII, the character code decimal 46
(or hexadecimal 2E) is defined to be
. (full stop).
| simples caractères | + (plus)
•
- (moins)
•
* (astérique)
•
/ (barre oblique)
= (égal à)
•
> (supérieur à)
•
< (inférieur à)
. (point)
•
: (deux-points)
•
; (point-virgule)
^ (Chapeau)
•
@ (at)
$ (Dollar)
•
& (ampersand)
•
# (hash)
' (apostrophe) |
| Paires de caractères |
|