From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: obarray Date: Sun, 15 Dec 2013 02:59:31 +0100 Message-ID: References: <87haabq6gl.fsf@nl106-137-194.student.uu.se> <87bo0irj13.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1387072862 12425 80.91.229.3 (15 Dec 2013 02:01:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2013 02:01:02 +0000 (UTC) Cc: Emacs Help List To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 03:01:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vs111-0004aH-7D for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 03:01:07 +0100 Original-Received: from localhost ([::1]:49158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs110-000585-QZ for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 21:01:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs10m-00057l-UK for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 21:00:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs10h-0002YQ-Qc for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 21:00:52 -0500 Original-Received: from mail-ee0-f47.google.com ([74.125.83.47]:52132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs10h-0002YI-K1 for help-gnu-emacs@gnu.org; Sat, 14 Dec 2013 21:00:47 -0500 Original-Received: by mail-ee0-f47.google.com with SMTP id e51so1304959eek.20 for ; Sat, 14 Dec 2013 18:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=79HJICuSYzctxNk5jiUPtWblC0gRuYpn15ybg4u4rxY=; b=bmBZq0TOcVyN14kFT9vCoAWcZLuJJuzWuBD1LVsxtHYKlUY6l7o0q12FTYnxR8IWbc uU8i+MtShLaCNijxH169ZgaU4PMbmJRW5d+jliUvNCa1/Fom9S7/O0B3mFdkKuq1eW3E 5eemsvuHD6i9xszVzGZWVIYxDQkB8fffTKqFpdp+IvTwYzX1NmBWm9N5iTTIxbdiKwaK kqpymIWlCFCFIWnPnXWNKIUYN5r2QQMgowJXRtnYoFInXDI8i2sA8bTqVpRZuJtF5xMr ny7FnwUVilcpL5rV7WsUk2iedmkpfSvWLJs2J+o9Ev1jxtNogw47Xrzu6q6amuxpI/2B EBZg== X-Received: by 10.14.211.130 with SMTP id w2mr1534953eeo.111.1387072811772; Sat, 14 Dec 2013 18:00:11 -0800 (PST) Original-Received: by 10.14.209.69 with HTTP; Sat, 14 Dec 2013 17:59:31 -0800 (PST) In-Reply-To: <87bo0irj13.fsf@nl106-137-194.student.uu.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94998 Archived-At: On Sun, Dec 15, 2013 at 2:37 AM, Emanuel Berg wrote: > So it is a hash table of symbols: variables, constants, > :keywords, functions, ...? symbols. Symbols are primitive objects with some properties (pointer to value and function, which can be null, a property list, etc.). Look at the code for details > And when you do `defvar', is the symbol name inserted > into this data structure based on some property - > perhaps the name itself, or type (if a "symbol" isn't > atomic)? As the description says, it is "intern" and "read" which do insert ("intern") symbols into the standard obarray. It is possible to use other obarrays (that's what the OBARRAY arg of `intern' is for), or have non-interned symbols. > Is the value inserted as well or do they use some sort > of pointer scheme? As said above, the symbol object has a slot for the variable value and another one for the function value, IIRC. J