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

Representations for values #286

Open
4 of 9 tasks
Nostracodus opened this issue Feb 28, 2023 · 1 comment
Open
4 of 9 tasks

Representations for values #286

Nostracodus opened this issue Feb 28, 2023 · 1 comment

Comments

@Nostracodus
Copy link
Contributor

IPR needs a representation for values. By values, I mean the objects that result from evaluation of prvalues.

IPR currently has representations for:

  • booleans
  • strings
  • nullptr
  • pointers-to-member

IPR does not currently represent:

  • integers
  • floats
  • records
  • unions
  • arrays
@GabrielDosReis
Copy link
Owner

IPR expected clients to use string representation for literals ("universal representation"), but of course that works only in pre-C++03 era, not with compile-time evaluation. Options here range from taking dependencies on external libraries (such as GMP, but with more permissive license) to developing homebrew, purposely-tailored libraries.

aggregate values missing is an oversight. What is needed is not so much the notion of value than that of an "irreducible expression" (which includes values)

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

No branches or pull requests

2 participants