Thread overview
Out parameter to functions
Jun 04, 2002
j.zuk
Jun 04, 2002
Walter
Jun 05, 2002
Sean L. Palmer
Jun 05, 2002
Walter
June 04, 2002
The 'out' parameters in functions beheve like 'inout' .
They should be inittialized with default value.
am I right ?


June 04, 2002
<j.zuk@cetelembank.de> wrote in message news:adi1bd$m80$1@digitaldaemon.com...
> The 'out' parameters in functions beheve like 'inout' .
> They should be inittialized with default value.
> am I right ?

Out parameters should be initialized by the callee, inout by the caller.


June 05, 2002
I don't believe you answered his question.  Does D automatically default initialize out parameters inside the callee (first thing during frame setup)?

Sean

"Walter" <walter@digitalmars.com> wrote in message news:adj060$1l9d$1@digitaldaemon.com...
>
> <j.zuk@cetelembank.de> wrote in message news:adi1bd$m80$1@digitaldaemon.com...
> > The 'out' parameters in functions beheve like 'inout' .
> > They should be inittialized with default value.
> > am I right ?
>
> Out parameters should be initialized by the callee, inout by the caller.



June 05, 2002
If it doesn't, it's a bug!

"Sean L. Palmer" <seanpalmer@earthlink.net> wrote in message news:adki60$65k$1@digitaldaemon.com...
> I don't believe you answered his question.  Does D automatically default initialize out parameters inside the callee (first thing during frame setup)?
>
> Sean
>
> "Walter" <walter@digitalmars.com> wrote in message news:adj060$1l9d$1@digitaldaemon.com...
> >
> > <j.zuk@cetelembank.de> wrote in message news:adi1bd$m80$1@digitaldaemon.com...
> > > The 'out' parameters in functions beheve like 'inout' .
> > > They should be inittialized with default value.
> > > am I right ?
> >
> > Out parameters should be initialized by the callee, inout by the caller.
>
>
>