Search found 8 matches

by mabu77
Mon Mar 12, 2012 1:01 pm
Forum: Common Lisp
Topic: Another question about Macro vs. Function
Replies: 5
Views: 8519

Re: Another question about Macro vs. Function

Okay, I have looked once more at Pascal's solution and do understand now how to implement it as a pure function. Although, I find my macro solution nice because of its brevity. Nevertheless, I would love to understand how one could combine the function swap-operators with the macro table. Regards Ma...
by mabu77
Sun Mar 11, 2012 8:00 am
Forum: Common Lisp
Topic: Another question about Macro vs. Function
Replies: 5
Views: 8519

Re: Another question about Macro vs. Function

Gugamilare, thanks for your reply and the examples you gave. This was exactly what was driving me to implement table as a macro in the first place. I just got confused when I wasn't able to extend it using the function swap-operators . As I said in a next step i wanted to implement a way to deal wit...
by mabu77
Sun Mar 11, 2012 4:47 am
Forum: Common Lisp
Topic: Another question about Macro vs. Function
Replies: 5
Views: 8519

Another question about Macro vs. Function

Hi all, while fiddling about the 99 Lisp Problems (P46, e.g. [1]) I ran into a situation where I was able to implement a simple solution based on a macro while I am failing getting it done by a function. This gives me a bad feeling and I would love to have someone more experienced comment on my solu...
by mabu77
Sun Jun 12, 2011 5:19 am
Forum: Common Lisp
Topic: Recursive macros
Replies: 2
Views: 3919

Re: Recursive macros

Thanks a lot for you reply. I do understand that I got something wrong in my understanding how evaluation works. I assume I just have to got back to the beginning and re-think everything carefully.

Regards
Martin
by mabu77
Sun Jun 12, 2011 4:04 am
Forum: Common Lisp
Topic: Recursive macros
Replies: 2
Views: 3919

Recursive macros

Hi all, while studying the 99 Lisp Problems ( http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/funcional/L-99_Ninety-Nine_Lisp_Problems.html ) Joao Meidanis derived from the 99 Prolog Problems, I came across a case where the argument of a predicate should not be evaluated to save the user the...
by mabu77
Mon Jun 06, 2011 1:13 pm
Forum: Common Lisp
Topic: Newbie: How to add my own helper functions permantly?
Replies: 6
Views: 6028

Re: Newbie: How to add my own helper functions permantly?

Thank you all for your replies. I finally set up a ASDF package for my extensions which i keep in different files and everything works fine now :-)

Best regards
Martin
by mabu77
Thu May 19, 2011 11:40 am
Forum: Common Lisp
Topic: Newbie: How to add my own helper functions permantly?
Replies: 6
Views: 6028

Re: Newbie: How to add my own helper functions permantly?

Duke, thanks for your reply. I think my main confusion is due to the fact that I do not see the clear analogy to emacs lisp which I am used too. In el I define my load-path and than use require in my .emacs file for loading packages (sorry for calling them modules -- my fortran history). With sbcl I...
by mabu77
Wed May 18, 2011 1:41 pm
Forum: Common Lisp
Topic: Newbie: How to add my own helper functions permantly?
Replies: 6
Views: 6028

Newbie: How to add my own helper functions permantly?

Hi all, I am posting this being aware that it is maybe a totally dumb question and hoping that I did not miss something obvious. I am pretty new to CL (using SBCL on OS X) and only using it as a hobby in my spare time without any special purpose at the moment. While I found a lot of great material i...