Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 04, 2002 Out parameter to functions | ||||
---|---|---|---|---|
| ||||
The 'out' parameters in functions beheve like 'inout' . They should be inittialized with default value. am I right ? |
June 04, 2002 Re: Out parameter to functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to j.zuk | <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 Re: Out parameter to functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 Re: Out parameter to functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean L. Palmer | 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. > > > |
Copyright © 1999-2021 by the D Language Foundation