"Nazgul" wrote in message news:a9chqr$23e76$1@ID-107015.news.dfncis.de... > Hi, I need to use an output parameter in an Ada function, something like > > function ReadChar(f: File; c: out character) return boolean; > If you "need" this function because you're used to the C construct while ( (c=getchar()) != EOF ) May I suggest loop ReadChar( file, char, end_of_file ); exit when end_of_file; ... end loop; instead? SteveD > The function must return a boolean, so the only way to read the character is > via the 'c' parameter. In other context, I use > > function (something: tpSomething) return ...; where tpSomething is an access > to a record type, and I can modify the contents of the record in the > function, but if I use > > function ReadChar(f: File; c: access character) return boolean; > > the compiler gives an error when i do something like > > c:=anything; > > Is there any way of using c as an output parameter? > > Thanks. > > -- > > (:==================:) > �lvaro Iradier > airadier@able.es > (+34)660133259 > (:==================:) > >