DMD 2.100, bring ont he attribute soup

Timon Gehr timon.gehr at gmx.ch
Fri May 27 15:14:44 UTC 2022


On 27.05.22 07:25, rikki cattermole wrote:
> 
> A question Timon came up with that I answered:
> 
> ```d
> int[][] func(int[] a, int[] b){
>      return [a,b];
> }
> ```
> 
> (for return value): ``// ownership: [first argument, second argument]``

(What I don't like about this is that it conflates ownership for 
different levels of indirection, the memory of the resulting array is 
actually GC-owned.)


More information about the Digitalmars-d mailing list