Bonjour ,
Gnat dit ici : https://en.wikibooks.org/wiki/Ada_Pr.../Standard/GNAT
Ceci : " -- The declaration of type Character is based on the standard
-- ISO 8859-1 character set.
-- The first 256 positions have the same contents as type Character "
Alors pourquoi ceci échoue :Alors que ceci réussi :
Code : Sélectionner tout - Visualiser dans une fenêtre à part put (character'val(256) ) ;!!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part put (character'val(255) ) ;
Et surtout quel est la longueur maximal du type Character ??
Partager