Search found 5 matches
- Mon May 07, 2012 5:05 am
- Forum: Common Lisp
- Topic: Multiple conditions in an if statement?
- Replies: 2
- Views: 6695
Re: Multiple conditions in an if statement?
Ok, thanks for your VERY quick reply, much appreciated, i tried doing a bit of research but i couldn't find anything on it :\
- Mon May 07, 2012 4:48 am
- Forum: Common Lisp
- Topic: Store a function in a variable
- Replies: 1
- Views: 3766
Store a function in a variable
Is it possible to store a function in a variable?
I am creating a button with xlib (the button being a struct) and i want to store the function in that button, so when that button is clicked or activated, it will follow through with the function thats stored inside that button
I am creating a button with xlib (the button being a struct) and i want to store the function in that button, so when that button is clicked or activated, it will follow through with the function thats stored inside that button
- Mon May 07, 2012 4:39 am
- Forum: Common Lisp
- Topic: Multiple conditions in an if statement?
- Replies: 2
- Views: 6695
Multiple conditions in an if statement?
How would one put multiple conditions in an if statement?
in C/C++ you would use && or &
if (x & y & z)
{blah}
how would you do this in lisp?
in C/C++ you would use && or &
if (x & y & z)
{blah}
how would you do this in lisp?
- Sun May 06, 2012 11:38 pm
- Forum: Common Lisp
- Topic: Structs in arrays
- Replies: 3
- Views: 8922
Re: Structs in arrays
Hey! thanks for your reply, its kinda handy how for lisp everything is upper-case, eliminates silly errors that you would probs find in C >_<.
You helped heaps, cheers
You helped heaps, cheers
- Wed May 02, 2012 3:58 am
- Forum: Common Lisp
- Topic: Structs in arrays
- Replies: 3
- Views: 8922
Structs in arrays
Hey all! Im still a little new to lisp and trying to grasp its power! I have created a struct here: (defstruct button X Y W H GRACKON TEXT) And i have an array that is created to store these structs. If i (vector-push-extend) a struct into this vector (or array), how would i access X in the button s...