Re: possibly silly question re quoting of function arguments...



In article <1146241678.510078.158780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"birlinn@xxxxxxxxx" <birlinn@xxxxxxxxx> wrote:

Hi Jon,

(defmacro dest-is-xvar-p (list)
`(eq ',list 'myvar-x1))

appears to do exactly what i want to do (i'm learning lisp and decided
to write a card game for emacs as an exercise)...

many thanks!

B

Suppose you do:

(setq otherlist-x1 mylist-x1)

(dest-is-xvar-p otherlist-x1)

Your macro will return false, is this what you want?

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.



Relevant Pages

  • Re: possibly silly question re quoting of function arguments...
    ... (defmacro dest-is-xvar-p (list) ... appears to do exactly what i want to do (i'm learning lisp and decided ... to write a card game for emacs as an exercise)... ...
    (comp.lang.lisp)
  • IDE with incremental evaluation
    ... I've gotten a bit spoiled using Emacs with SLIME while learning Lisp. ... This seems like the sort of functionality that would be ... In Lisp, a function definition, class definition, etc... ...
    (comp.lang.ruby)
  • IDE with incermental evaluation
    ... I've gotten a bit spoiled using Emacs with SLIME while learning Lisp. ... This seems like the sort of functionality that would be ... In Lisp, a function definition, class definition, etc... ...
    (comp.lang.ruby)
  • Re: Upgrading Office Mac
    ... the effort on learning lisp, emacs and LaTeX. ... you are right about the sick puppy bit! ... One day I'll get as good doing lisp macros as I did teco. ...
    (uk.comp.sys.mac)
  • Re: IDE with incremental evaluation
    ... > learning Lisp. ... The Emacs mode that comes with Ruby does this. ... > I'm not quite sure how the terminology translates to Ruby ...
    (comp.lang.ruby)