Am Mi., 9. Juni 2021 um 19:37 Uhr schrieb John Cowan <xxxxxx@ccil.org>:


On Wed, Jun 9, 2021 at 1:33 PM Marc Nieper-Wißkirchen <xxxxxx@nieper-wisskirchen.de> wrote:
Thanks. So you didn't mean that it would be an efficiency problem but a problem of understanding the code just by looking at it locally?

Also a performance problem because the code has to do an indirect jump through the value of foo rather than a direct jump. 

There's no real problem, I'd say. Either the user writes something like "nasty!". Then they want the runtime modification of the value and so the encapsulation would have the wrong semantics. Or "nasty!" is not present, and then any decent compiler will issue a direct jump.