Out parameters and initialization
Unknown W. Brackets
unknown at simplemachines.org
Sun Feb 26 11:12:18 PST 2006
I'm thinking from the "in-side". In my mind, if I leave off an out or
inout parameter, I want the result to go nowhere (but might still expect
the variable to exist in the function.) I don't see how this isn't
logical, but I can understand how you'd disagree.
You do seem to disagree; to make us both happy, perhaps only in should
have default parameters allowed.
-[Unknown]
> On Sat, 25 Feb 2006 21:02:30 -0800, Unknown W. Brackets
> <unknown at simplemachines.org> wrote:
>> Personally, I think = should be disallowed entirely for out
>> parameters, and should work on inout parameters in the same way as it
>> does for in ones. This would stay logical.
>
> You realise 'inout' aliases the parameter in the same was as 'out' does?
>
> Regan
More information about the Digitalmars-d-bugs
mailing list