home *** CD-ROM | disk | FTP | other *** search
- Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sm86+
- Newsgroups: comp.lang.lisp
- Message-ID: <gecyA4y00awM4OQVkQ@andrew.cmu.edu>
- Date: Tue, 1 Sep 1992 17:39:16 -0400
- From: Stefan Monnier <sm86+@andrew.cmu.edu>
- Subject: Scheme equivalence in CL
- Lines: 38
-
-
- I used to use (great!) Scheme, but I have (cause of the teacher)
- to use CL this time.
-
- So here are some questions after a bit of trying:
-
- How are exactly used functions ? It seems it is not as simple
- as in scheme.
- In particular, I need a function which does exacly the same
- as equal (but under another name)
-
- In scheme I just would do:
- (define state-equal equal)
-
- But in common-lisp, the best I found was:
- (defun state-equal #'equal)
-
- When I call it, CL has no problems: it is recognized as a function,
- it needs 2 parameters, BUT it ALWAYS returns NIL !!
-
- I know I can redefine it more completely:
- (defun state-equal (x y) (equal x y))
-
- But the scheme way is so much nicer that I'm sure there is an
- equivalent way in CL.
-
-
- Stefan Monnier
-
-
- -----------------------------------------------------
- -- On the average, people seem to be acting normal --
- -----------------------------------------------------
-
-
-
-
-
-