all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#42032: 27.0.91; Allow Lisp_User_Ptr to declare which LispObject it has reference to
@ 2020-06-24 16:59 Ivan Yonchovski
       [not found] ` <handler.42032.B.159301795131078.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Yonchovski @ 2020-06-24 16:59 UTC (permalink / raw)
  To: 42032


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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-13  0:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24 16:59 bug#42032: 27.0.91; Allow Lisp_User_Ptr to declare which LispObject it has reference to Ivan Yonchovski
     [not found] ` <handler.42032.B.159301795131078.ack@debbugs.gnu.org>
2020-06-26 17:37   ` bug#42032: Acknowledgement (27.0.91; Allow Lisp_User_Ptr to declare which LispObject it has reference to) yyoncho
2020-08-13  0:40     ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.