3 ms·
That sounds like a fairly bad idea but both Java and C# let you access the stack and mess with variables from previous frames if you really want to. You can't a
by thermodynthrway 8y ago
That sounds like a fairly bad idea but both Java and C# let you access the stack and mess with variables from previous frames if you really want to. You can't access stack memory outside the heap hut I can't think of a use-case
- barrkel 8y agoC# does (via ref parameters) but Java does not - any values you mutate must logically live in the heap (or a static). Some JIT optimization may allocate an instance in the stack, I'm not counting that.