https://issues.dlang.org/show_bug.cgi?id=20607

--- Comment #5 from Mathias LANG <[email protected]> ---
> I don't see how. @system is designed to allow breaking the type system. 
> @trusted code is not allowed to do so.

The compiler doesn't let you change `immutable` values in `@system` functions.

> How is accessing identifiers by internal names accidental?

*Exposing* them was accidental. You can access them at runtime with module
info. It would be good to have a way to access them at compile-time too, and
I'm fine with this being a blocker to solve this issue. E.g. adding
`__traits({ctors, dtor}, SYM)`.

--

Reply via email to