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

Constant bytes <=> char[] conversion should work #1514

Closed
lerno opened this issue Oct 3, 2024 · 3 comments
Closed

Constant bytes <=> char[] conversion should work #1514

lerno opened this issue Oct 3, 2024 · 3 comments
Labels
Accepted Accepted Request Enhancement Request New feature or request
Milestone

Comments

@lerno
Copy link
Collaborator

lerno commented Oct 3, 2024

char[] x = x'00aabbcc';
bool text = x == x'00aabbcc';

This ought to be valid.

@lerno lerno added Enhancement Request New feature or request Accepted Accepted Request labels Oct 3, 2024
@lerno lerno added this to the 0.6.4 milestone Oct 3, 2024
@lerno lerno added the Implemented Needs Verification Check if this issue is resolved label Oct 9, 2024
@sandervdbosch
Copy link
Contributor

sandervdbosch commented Oct 10, 2024

Works as expected

x = [0, 170, 187, 204]
test = true

@lerno
Copy link
Collaborator Author

lerno commented Oct 10, 2024

Was there some issue...? @sandervdbosch

@sandervdbosch
Copy link
Contributor

No, I made a mistake with putting the code snippet outside of a function which made it look like it didn't work.

@lerno lerno closed this as completed Oct 12, 2024
@lerno lerno removed the Implemented Needs Verification Check if this issue is resolved label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted Request Enhancement Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants