-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multidimensional Arrays #2894
Comments
Just keep reading each
The initialization syntax ought to get somewhat better when we get this merged in. |
Apologies if this isn't the correct place, but how would you pass this to a C function that takes the equivalent multi dimensional C-array? For example:
|
I'm honestly not sure if there's a better place either. This seems to compile at least:
If I'm understanding the casts correctly here, &names gets implicitly cast from |
Ah, I must have missed that in the casts section. Thank you :) |
I'll leave this issue open to add a multidimensional array example to the docs. |
Works and is kinda nice imho if know the lengths. Fits better with the other type definitions. Documentations has it like this:
Which is overly verbose if you ask me... But gives you the option to infer the length, although in the example it is given anyway. |
I looked through the documentation etc. but I can't seem to find any reference on how to define and initialise multidimensional arrays (e.g. arrays of strings). Is this supported and, if so, how would I do this?
The text was updated successfully, but these errors were encountered: