3 ms·
I believe their plan is using "restricted function pointers", where you can specify that a pointer will only ever be to a function defined in the codebase. I'm
by smj-edison 5mo ago
I believe their plan is using "restricted function pointers", where you can specify that a pointer will only ever be to a function defined in the codebase. I'm pretty sure they also have plans for devirtualization, but I haven't followed super closely.
- dnautics 5mo ago"you can specify that a pointer" i dont think you need to specify that. the compiler can figure it out and do an optimization pass at the end.
- smj-edison 5mo agoOh, is it not a specific keyword? I thought they were thinking of it being a keyword so you could be sure that it was restricted, in case a variable or function was exported that took in a foreign pointer.
- lukaslalinsky 5mo agoThere are going to be builtins to control this. The compiler will not do it on its own.