>>>>> Magnus Henoch <[EMAIL PROTECTED]> writes:

> Jim Ottaway <[EMAIL PROTECTED]> writes:
>> What I would really like is a defstruct implemented outside of the cl
>> package, so that one could use it freely [the cl package is anathema
>> to some].  It would make lots of code like (nth 5 thing-list) and
>> (cadddr thing-list) much easier to read. 

> defstruct is a macro, so byte-compiled code that uses it doesn't
> depend on cl at run time.  Just use this line:

> (eval-when-compile (require 'cl))

> and even purists are happy (they have to byte-compile your code, of
> course).

Good point. 

-- 
Jim Ottaway


_______________________________________________
emacs-wiki-discuss mailing list
emacs-wiki-discuss@nongnu.org
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss

Reply via email to