@timothee Thanks for those pointers. I don't know how I can use this with my svdpi module though.
1. The proposed `constChar` type looks like something that should ship with Nim in system or some std lib. If I introduce this new type in svdpi, I need to export that type as the svdpi API is using const char. The risk is type clash as gradually more C-wrapper Nim libs need constChar. 2. As `constChar` is a distinct type, we need to define all basic ops like `$`, `add`, `[]`, etc. As the parent type is not a Nim type, I don't think we can simply use the borrow pragma to define those ops. Taking my example above, the `constChar` would need at least a `$` implementation as I can see that it would be quite common to copy that const char to a Nim string.