At the Crystal runtime, this is possible: '?'.ord
Is there anything similar for a Crystal macro?: {% 'a' %}
(I have no valid use case for this. It's just for esoteric reasons.)
No, this is currently not possible.
Here is the documentation about what you can do on a CharLiteral
.