GNU bug report logs - #42032
27.0.91; Allow Lisp_User_Ptr to declare which LispObject it has reference to

Previous Next

Package: emacs;

Reported by: Ivan Yonchovski <yyoncho <at> gmail.com>

Date: Wed, 24 Jun 2020 17:00:02 UTC

Severity: normal

Found in version 27.0.91

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ivan Yonchovski <yyoncho <at> gmail.com>
To: 42032 <at> debbugs.gnu.org
Subject: bug#42032: 27.0.91; Allow Lisp_User_Ptr to declare which LispObject it has reference to
Date: Wed, 24 Jun 2020 19:59:01 +0300
This will using Lisp_User_Ptr for lazy computation. Here it is sample
flow:

(let ((lazy (my-module-function)))
  (my-module-get lazy "foo") ;; returns "bar"
  (my-module-get lazy "foo") ;; returns "bar"
  ...
  )

ATM it is not possible to cache "bar" in lazy because it will be garbage
collected.

Thanks,
Ivan




This bug report was last modified 4 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.