void[] vs ubyte[] - differences?

Nick Treleaven nick at geany.org
Thu Jul 17 17:31:14 UTC 2025


On Thursday, 17 July 2025 at 16:26:43 UTC, Nick Treleaven wrote:
> Perhaps there should be an entry for `void` in the types page. 
> A `void` value cannot be accessed. `void.sizeof` is 1 so that a 
> void array can have length equivalent to the number of bytes in 
> the array.

https://github.com/dlang/dlang.org/pull/4261


More information about the Digitalmars-d-learn mailing list