Isolated by example
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 2 06:50:07 PDT 2014
On Friday, 2 May 2014 at 06:51:49 UTC, deadalnix wrote:
> An isolated is consumed when:
> - it is returned
> - it is passed as argument
> - it is assigned to another island
This will not work well with UFCS.
isolated int[] ints = new int[](10);
//put looks like a member function, but
//this desugars to put(ints, 3), so ints
//is consumed
ints.put(3);
More information about the Digitalmars-d
mailing list