r/cpp • • Oct 24 '24 • Take My Silver 1

Why Safety Profiles Failed

https://www.circle-lang.org/draft-profiles.html
180 Upvotes

347 comments sorted by

View all comments

Show parent comment

2

u/germandiago Oct 26 '24 edited Oct 26 '24

I am aware you know more about the topic than me.  However, you can detect aliasing at runtime by injection for old code on recompile and add in/out/inout parameters to functions that do not alias as a new feature restricted to only function parameters that does not go viral. 

Would that not be possible? Just asking about possible, not about optimal runtime performance.

Old code -> runtime injection and compatible.   New code -> static guarantees, not viral type system.

  My goal here would be to achieve something as close to compatible code as possible where old code can be used safely and analyzed.