Elektrine lite

← Feed

@idiot@mastodonapp.uk

Post #1947126

2026-05-04 07:58 UTC

@typeswitch@gamedev.lgbt surely n should be internal?

Replies (1)

  • @typeswitch@gamedev.lgbt 2026-05-04 12:18

    @idiot that will work for arrays of statically known size. it's fine but a lot of the times you want to iterate over an array that you don't know the size statically (i.e. you only have a pointer to the start of the array), so you need to pass in the length of the array.

    Open ##1981532