Skip to content
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

Proper C array declaration #751

Closed
nddrylliog opened this issue Dec 6, 2013 · 1 comment
Closed

Proper C array declaration #751

nddrylliog opened this issue Dec 6, 2013 · 1 comment

Comments

@nddrylliog
Copy link
Member

Something like:

a: Char* = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf]

Doesn't do what you expect at all. This doesn't either:

a := [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf] as Char*

That's really painful, as it turns out.

@ghost ghost assigned nddrylliog Dec 6, 2013
nddrylliog added a commit that referenced this issue Dec 6, 2013
@nddrylliog
Copy link
Member Author

Code's really ugly, but it works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant