Filling an array

Alex via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 12 12:22:42 PST 2016


On Saturday, 12 March 2016 at 19:35:30 UTC, ag0aep6g wrote:
> On 12.03.2016 16:44, Mike Parker wrote:
>> arr[] = cast(Nullable!uint)1;
>
> Nicer than a cast: construct a Nullable!int.
>
> arr[] = Nullable!uint(1);

ok... so... this makes the error very strange, then... almost 
senseless...


More information about the Digitalmars-d-learn mailing list