[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mentioning symbol put it to obarray?

From: Oleksandr Gavenko
Subject: Mentioning symbol put it to obarray?
Date: Mon, 21 Jan 2013 21:56:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]