out parameter with default value

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 29 10:43:17 PDT 2014


On Mon, 29 Sep 2014 16:07:49 +0000
AsmMan via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> but it doesn't?
> 
> void f(out int c = 1)
'cause `out int c` is actually `int* c`. you can't assign int(1) to
pointer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140929/1a630495/attachment.sig>


More information about the Digitalmars-d-learn mailing list