 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 7th, 2006, 04:37 PM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
Quote: | Originally Posted by xlordt Ok, i got the editor installed.. now i just need to change its BG from white to black.. it was as simple as python2.4 setup.py install.... done! | I presumed you've have issues with not having gnome-python-extras and gnome-python, pygtk etc.
|

June 7th, 2006, 04:39 PM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
Quote: | Originally Posted by LinuxPenguin I presumed you've have issues with not having gnome-python-extras and gnome-python, pygtk etc. | Ya.. but i do have Gnome installed.
|

June 7th, 2006, 04:51 PM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
|
LinuxPenguin Can i modify scribes theme? If so were is the documentation for it?
|

June 7th, 2006, 04:59 PM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
No, and no.
Nah, if you want to do that, you change the gnome code editor's preferences globally, there should be a gnome configuration file or utility for it somewhere.
|

June 7th, 2006, 05:05 PM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
Quote: | Originally Posted by jamieB I couldn't comment, I'm happy with the default faces and color-themes |
The default font in any lisp's mode is bloody awful, it looks like courier.
>>I've never had any problems installing slime and if you're using one of the open source common lisps it is the de facto standard. I like jumping to the hyperspec docs for the function under point etc. Have you seen Marco Baringer's slime movie? Worth a watch http://common-lisp.net/project/slime/doc/slime.torrent
It was the movie that made slime installation look difficult. Granted, it might look a lot easier if they weren't trying to set up an ssh tunnel for it, but *shrug*
>>I agree, it's not a general purpose language and typing has gotchas compared to strongly typed (but dynamic) modern lisps, but I think it makes a good embedded scripting language. The rich API helps - if you want to create a function that moves text around, rewrites as you type (eg closing parens or something more complicated) it's a matter of calling existing hooks.
Yes, but even some rudimentary functions become *impossible* to make due to this, including the first function I tried to write in elisp (no, i can't remember what it was)
|

June 7th, 2006, 05:12 PM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
What is wrong here.
scheme Code:
Original
- scheme Code |
|
|
|
(define size 10)
(if( < size 20)
(display size)
(display "hmm")
)
I'm just testing things out.
|

June 7th, 2006, 05:14 PM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
|
a space after the if needed and a space before the < to be taken off
|

June 7th, 2006, 05:16 PM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
Quote: | Originally Posted by LinuxPenguin a space after the if needed and a space before the < to be taken off | Damn i didnt know about the spaces... now how can i make it print on a new line. I tried adding (newline) right next to (display..)
|

June 7th, 2006, 05:21 PM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
|
(display "\n")
When you get onto string handling you'll make it much more efficient, so don't worry about it.
|

June 7th, 2006, 07:36 PM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
Well what i did was this.
scheme Code:
Original
- scheme Code |
|
|
|
(define size 10)
(if (< size 20)
(display size)
(display "hmm"))
(newline)
|

June 8th, 2006, 04:08 AM
|
 |
fork while true;
|
|
Join Date: May 2005
Location: England, UK
|
|
|
Is there even a primitive named newline? hrm...
(display "\n")
|

June 8th, 2006, 06:25 AM
|
|
|
Quote: | Originally Posted by xlordt Damn i didnt know about the spaces... now how can i make it print on a new line. I tried adding (newline) right next to (display..) |
have you looked at SICP? It's aim isn't really to teach scheme but that's what it does...
Quote:
Can i modify scribes theme? If so were is the documentation for it?
>> No and no. |
I'm keeping quiet 
|

June 8th, 2006, 06:31 AM
|
|
|
Quote: | Originally Posted by LinuxPenguin
It was the movie that made slime installation look difficult. Granted, it might look a lot easier if they weren't trying to set up an ssh tunnel for it, but *shrug*
|
I know this is going OT but installing slime (if you already have sbcl, clisp, cmucl whatever installed) goes like this:
. download slime
. add 2 or 3 lines to .emacs, following the example in the slime docs
. M-x slime
|

June 8th, 2006, 06:49 AM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
Quote: | Originally Posted by jamieB have you looked at SICP? It's aim isn't really to teach scheme but that's what it does...
I'm keeping quiet  | hehehe 
|

June 8th, 2006, 10:32 AM
|
 |
Only the strong survives!!.
|
|
Join Date: Feb 2003
Location: A World of wonders.
|
|
Ok I want to know if there is a better shorter way of doing this?
Code:
(define age 27 )
(define name "xlordt")
( if (< age 18)
(begin
(display "Your not allowed to view this content") (newline)
)
(begin
(set! name "The King!!")
(display name) (newline)
)
)
Also how many scheme programmers are here at dev? Can somene show me a program created in scheme?
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|