Does this mean that before this commit was in: ----------------- commit 65810c5a195a998bae51ced3518e1553e23f539d Author: Martin Nilsson nilsson@fastmail.com Date: Thu Dec 28 16:42:27 2017 +0100
Clena up stack in create ----------------- The stack objects lingered longer than necessary?
Does this mean that before this commit was in:
commit 65810c5a195a998bae51ced3518e1553e23f539d Author: Martin Nilsson nilsson@fastmail.com Date: Thu Dec 28 16:42:27 2017 +0100
Clena up stack in create
The stack objects lingered longer than necessary?
It would probably typically be the create arguments that linggered, but I haven't checked if they did. My plan was to make it an error to return anything from create() and see how well that works. If that works, then it would be possible to add that as a way of implementing singletons, in a distant future.
protected A a; class A { void create() { if(a) return a; return a=this; } }
pike-devel@lists.lysator.liu.se