Common Lisp

Overloading the =operator

Page 1 of 1

2 Replies - 1071 Views - Last Post: 22 April 2010 - 02:21 PM

#1 sarahbburns   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-April 10

Common Lisp

Posted 22 April 2010 - 11:11 AM

hey all I am having a little trouble on easy task I need to overload the = operator in common lisp. I am not familar with Common Lisp so any help would be greatly appericated. I need to create a macro for this that will do the following but instead of using = I need it to use == as in C-based languages:

cl-user(117):(/>=3 (- 5 2) (+ 1 2))
t
cl-user(118): (= 3 (- 5 3) (+ 1 2))

This post has been edited by JackOfAllTrades: 22 April 2010 - 01:18 PM
Reason for edit:: Added code tags.

Is This A Good Question/Topic? 0
  • +

Replies To: Common Lisp

#2 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6259
  • View blog
  • Posts: 24,028
  • Joined: 23-August 08

Re: Common Lisp

Posted 22 April 2010 - 01:18 PM

Moved to Functional Programming
Was This Post Helpful? 0
  • +
  • -

#3 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 615
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Common Lisp

Posted 22 April 2010 - 02:21 PM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1