From bc06c87a10f9d9ddc4209ec0a49ab48bf37dc706 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 21 Aug 2019 17:31:13 -0700 Subject: doc: note about cptr-obj lifetime. * txr.1: Include blurb about the independent lifetime of a ctpr made by cptr-obj and the original object. If the original is garbage collected, the ctpr is junk. --- txr.1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/txr.1 b/txr.1 index 93c02ab2..0f025e9a 100644 --- a/txr.1 +++ b/txr.1 @@ -49649,6 +49649,18 @@ This symbol becomes the .code cptr object's type tag. +The lifetime of the returned +.cptr +object is independent from that of +.metn object . +If the lifetime of +.meta object +reaches its end before that of the +.code cptr , +the pointer stored inside the +.code cptr +becomes invalid. + .coNP Function @ int-cptr .synb .mets (int-cptr << cptr ) -- cgit v1.2.3