On Saturday, 6 February 2016 at 17:46:48 UTC, rsw0x wrote:
On Saturday, 6 February 2016 at 17:46:00 UTC, Ola Fosheim
Grøstad wrote:
On Saturday, 6 February 2016 at 17:38:30 UTC, rsw0x wrote:
Can't be done with the root class because classes never
trigger RAII outside of (deprecated) scope allocations.
Not sure what you mean. The class instance doesn't have to
trigger anything?
You "retain(instance)" to increase the refcount and
"release(instance)" to decrease refcount or destroy the
instance.
Might as well manually free and delete instead.
Er, malloc and free* : )