On Sun, 14 Apr 2002 20:29:10 +0200, "Nazgul" wrote: You could use a procedure, or you could use a function that returns a record containing a boolean and the character you want. As far as I can remember, a way of getting round the no-side-effects feature of functions is to pass it a pointer then update the contents of the pointed to location. >Hi, I need to use an output parameter in an Ada function, something like > >function ReadChar(f: File; c: out character) return boolean; > >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 > (:==================:) > >