Re: ref vs out.

2011-02-14 Thread Stanislav Blinov
14.02.2011 18:06, Charles McAnany пишет: Hi, all. So I'm new to this whole contract thing. (I'm coming from C and Java.) I got the impression that using foo(out arg) means that arg is given its default value, but other than that it's just like ref. So, here's the basic code I have thus far. 01 i

Re: ref vs out.

2011-02-14 Thread Jesse Phillips
Charles McAnany Wrote: > Hi, all. So I'm new to this whole contract thing. (I'm coming from C and > Java.) > I got the impression that using foo(out arg) means that arg is given its > default value, but other than that it's just like ref. So, here's the basic > code I have thus far. The init val

ref vs out.

2011-02-14 Thread Charles McAnany
Hi, all. So I'm new to this whole contract thing. (I'm coming from C and Java.) I got the impression that using foo(out arg) means that arg is given its default value, but other than that it's just like ref. So, here's the basic code I have thus far. 01 import std.random:Random; 02 import std.cont