all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mentioning symbol put it to obarray?
@ 2013-01-21 19:56 Oleksandr Gavenko
  2013-01-21 21:09 ` Drew Adams
  2013-01-28 13:57 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Oleksandr Gavenko @ 2013-01-21 19:56 UTC (permalink / raw)
  To: help-gnu-emacs

I execute code:

  (put 'xxx 'some "value")

and found symbol "xxx" in obarray. Also such code always invoke error:

  (mapatoms (lambda (ob) (when (eq ob 'XYZ) (error "ok"))) obarray)

for any "XYZ" because after parsing above line and before evaluation "XYZ"
put to obarray...

So mentioning any symbol make it globally available (existing)?

Is it garbage collected from (remember about link in obarray)?

-- 
Best regards!




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

end of thread, other threads:[~2013-01-28 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.18035.1358798223.855.help-gnu-emacs@gnu.org>
2013-01-21 22:49 ` Mentioning symbol put it to obarray? Pascal J. Bourguignon
2013-01-21 19:56 Oleksandr Gavenko
2013-01-21 21:09 ` Drew Adams
2013-01-28 13:57 ` Stefan Monnier

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.