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

AGREE and AADL string types #22

Open
kfhoech opened this issue Jun 6, 2019 · 6 comments
Open

AGREE and AADL string types #22

kfhoech opened this issue Jun 6, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@kfhoech
Copy link
Contributor

kfhoech commented Jun 6, 2019

Would it be useful to have very limited support for AADL string types?

It would be fairly simple to implement a very limited semantics where only two operations are available: assignment from a literal constant or another string, and comparison.

An implementation would use a hash of the string literal (as an integer) as the string value. Thus, only assignment and comparison would be directly supported.

@kfhoech kfhoech added the enhancement New feature or request label Jun 6, 2019
@konrad-slind
Copy link
Contributor

konrad-slind commented Jun 6, 2019 via email

@konrad-slind
Copy link
Contributor

konrad-slind commented Jun 6, 2019 via email

@kfhoech
Copy link
Contributor Author

kfhoech commented Jun 6, 2019

For comparison, I meant only equality/non-equality. Not sort ordering. But with that hash, I suppose that's possible too.

@mwwhalen
Copy link
Contributor

mwwhalen commented Jun 6, 2019 via email

@kfhoech
Copy link
Contributor Author

kfhoech commented Jun 6, 2019

The hash computation would need be done only for string literals at translation time, right? That should be fairly inexpensive as we would expect the count of such hashes to be small.

@jendavis
Copy link
Contributor

In my work to date, I haven't come across a need for AADL string types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants