How to pass in reference a fixed array in parameter
    Nick Treleaven 
    nick at geany.org
       
    Wed Jun  5 11:27:32 UTC 2024
    
    
  
On Wednesday, 5 June 2024 at 09:24:23 UTC, evilrat wrote:
> for simple cases like this it might work, but 2d array is not 
> even contiguous,
A 2D static array is contiguous:
https://dlang.org/spec/arrays.html#rectangular-arrays
> D static arrays, while using the same syntax, are implemented 
> as a fixed rectangular layout in a contiguous block of memory
    
    
More information about the Digitalmars-d-learn
mailing list