[Top][All Lists]

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

Re: adding namespaces to emacs-lisp (better elisp?)

From: Stefan Monnier
Subject: Re: adding namespaces to emacs-lisp (better elisp?)
Date: Fri, 26 Jul 2013 18:21:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> If a namespace package calls intern the symbol is interned in the
> private obarray.

I'm not sure how you could do that and neither am I sure that would
preserve backward compatibility.  So without more details of how that
would work, it sounds like wishful thinking to me.

>> I'm not sure why the implementation should be difficult.  `intern' would
>> "simply" need to parse the string into a list of elements (separated by
>> "::" or whatever), then lookup the first element in the obarray, which
>> should contain another obarray, then lookup the second element in that
>> obarray, etc... until the last element which is handled "in the old
>> way".
> It would clearly be more work to add the extra indirection to allow
> namespaced namespaces than to have one level.

Could be, but not necessarily.  It could amount to not much more than
replacing a `when' with a `while'.


reply via email to

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