[ada-france] Get_Immediate

Jeffrey R. Carter jrcarter at acm.org
Sam 8 Déc 19:27:01 CET 2007


Thomas De Contes wrote:
> 
>> De : John B. Matthews
>> I see the same effect. You might look at ARM A.10.7(26) to see if the
>> Available parameter makes any difference.
> 
> et je ne comprends pas la réponse de John
> (J'ai bien lu les paragraphes de
> http://www.adaic.org/standards/05rm/html/RM-A-10-7.html
> qui parlent de Get_Immediate, plus le n° 26)

ARM A.10.7:

11
procedure Get_Immediate(File      : in  File_Type;
                         Item      : out Character;
                         Available : out Boolean);
procedure Get_Immediate(Item      : out Character;
                         Available : out Boolean);
12
If a character, either control or graphic, is available from the specified File 
or the default input file, then the character is read; Available is True and 
Item contains the value of this character. If a character is not available, then 
Available is False and the value of Item is not specified. Mode_Error is 
propagated if the mode of the file is not In_File. End_Error is propagated if at 
the end of the file. The current column, line and page numbers for the file are 
not affected.

Peut etre ces versions n'attend pas Enter.

-- 
Jeff Carter
"When danger reared its ugly head, he bravely
turned his tail and fled."
Monty Python and the Holy Grail
60


Plus d'informations sur la liste de diffusion Ada-France