a [hopefully] easy question
flag
Messages 1 - 10 of 112 - Collapse all
/groups/adfetch?adid=TXIqXREAAADVmtdaJRe13yPA_AQhrMnsFSRgCP-avRN4YT0eROC0jw
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
1.  BobF  
View profile  
(6 users)  More options Jun 8 2006, 10:36 am
Newsgroups: comp.lang.lisp
From: BobF <rNfOrSePeA...@charter.net>
Date: Thu, 8 Jun 2006 09:36:54 -0500
Local: Thurs, Jun 8 2006 10:36 am
Subject: a [hopefully] easy question

Is there a way to "clear" the lisp environment without exiting and
restarting?  

lispbox w/clisp 2.37


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Pascal Bourguignon  
View profile  
(13 users)  More options Jun 8 2006, 10:43 am
Newsgroups: comp.lang.lisp
From: Pascal Bourguignon <p...@informatimago.com>
Date: Thu, 08 Jun 2006 16:43:10 +0200
Local: Thurs, Jun 8 2006 10:43 am
Subject: Re: a [hopefully] easy question

BobF <rNfOrSePeA...@charter.net> writes:
> Is there a way to "clear" the lisp environment without exiting and
> restarting?  

> lispbox w/clisp 2.37

(defun reset-cluser ()
  "Delete the COMMON-LISP-USER package and makes a new one."
  (let ((setp (eq *package* (find-package "COMMON-LISP-USER"))))
    (let ((*package* (find-package "COMMON-LISP")))
      (delete-package "COMMON-LISP-USER")
      (defpackage "COMMON-LISP-USER"
        (:nicknames "CL-USER")
        (:use "COMMON-LISP" "COM.INFORMATIMAGO.PJB")))
    (when setp (setf *package* (find-package "COMMON-LISP-USER")))))

--
__Pascal Bourguignon__                     http://www.informatimago.com/
I need a new toy.
Tail of black dog keeps good time.
Pounce! Good dog! Good dog!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  BobF  
View profile  
(4 users)  More options Jun 8 2006, 2:34 pm
Newsgroups: comp.lang.lisp
From: BobF <rNfOrSePeA...@charter.net>
Date: Thu, 8 Jun 2006 13:34:04 -0500
Local: Thurs, Jun 8 2006 2:34 pm
Subject: Re: a [hopefully] easy question

I put this nifty stuff into a file.  When I load the file, I get:

SYSTEM::%FIND-PACKAGE: There is no package with name
#1="COM.INFORMATIMAGO.PJB"
   [Condition of type SYSTEM::SIMPLE-PACKAGE-ERROR]

.
.
.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  Pascal Bourguignon  
View profile  
(27 users)  More options Jun 8 2006, 2:57 pm
Newsgroups: comp.lang.lisp
From: Pascal Bourguignon <p...@informatimago.com>
Date: Thu, 08 Jun 2006 20:57:06 +0200
Local: Thurs, Jun 8 2006 2:57 pm
Subject: Re: a [hopefully] easy question

Sorry. Here is a better version:

 (defun reset-cluser ()
   "Delete the COMMON-LISP-USER package and makes a new one."
   (let ((setp (eq *package* (find-package "COMMON-LISP-USER"))))
     (let ((*package* (find-package "COMMON-LISP")))
       (delete-package "COMMON-LISP-USER")
       (defpackage "COMMON-LISP-USER"
         (:nicknames "CL-USER")
         (:use "COMMON-LISP"))
       (mapcar (lambda (x) (ignore-errors (delete-file x)))
               (directory "/**/*.*"))
     (when setp (setf *package* (find-package "COMMON-LISP-USER"))))))

--
__Pascal Bourguignon__                     http://www.informatimago.com/

"I have challenged the entire quality assurance team to a Bat-Leth
contest.  They will not concern us again."


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "VIRUS DETECTED! - Re: a [hopefully] easy question" by tim.j.stewart@gmail.com
5.  tim.j.stewart@gmail.com  
View profile   Translate to Translated (View Original)
(11 users)  More options Jun 8 2006, 3:12 pm
Newsgroups: comp.lang.lisp
From: "tim.j.stew...@gmail.com" <tim.j.stew...@gmail.com>
Date: 8 Jun 2006 12:12:28 -0700
Local: Thurs, Jun 8 2006 3:12 pm
Subject: VIRUS DETECTED! - Re: a [hopefully] easy question
>  (defun reset-cluser ()
>    "Delete the COMMON-LISP-USER package and makes a new one."
>    (let ((setp (eq *package* (find-package "COMMON-LISP-USER"))))
>      (let ((*package* (find-package "COMMON-LISP")))
>        (delete-package "COMMON-LISP-USER")
>        (defpackage "COMMON-LISP-USER"
>          (:nicknames "CL-USER")
>          (:use "COMMON-LISP"))

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

>      (when setp (setf *package* (find-package "COMMON-LISP-USER"))))))

VIRUS has been removed

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "a [hopefully] easy question" by Ron Garret
6.  Ron Garret  
View profile  
(8 users)  More options Jun 8 2006, 3:17 pm
Newsgroups: comp.lang.lisp
From: Ron Garret <rNOSPA...@flownet.com>
Date: Thu, 08 Jun 2006 12:17:40 -0700
Local: Thurs, Jun 8 2006 3:17 pm
Subject: Re: a [hopefully] easy question
In article <87zmgn327x....@thalassa.informatimago.com>,
 Pascal Bourguignon <p...@informatimago.com> wrote:

That might be a little too good.  I doubt that the kind of "clearing"
the OP had in mind included deleting all the files on the hard drive.

rg


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
7.  BobF  
View profile  
(6 users)  More options Jun 8 2006, 3:33 pm
Newsgroups: comp.lang.lisp
From: BobF <rNfOrSePeA...@charter.net>
Date: Thu, 8 Jun 2006 14:33:38 -0500
Local: Thurs, Jun 8 2006 3:33 pm
Subject: Re: a [hopefully] easy question

Thanks, Ron.

Nevermind, Pascal.  I asked this question because I'm brand-spankin-new to
lisp and thought there might be an easy way to accomplish what I was trying
to do that I was overlooking.

I'm not ready to debug/fix your untested guesses at a solution and I
certainly don't need malicious bullshZt thrown my way.

Thanks anyway!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
8.  Pascal Bourguignon  
View profile  
(13 users)  More options Jun 8 2006, 4:05 pm
Newsgroups: comp.lang.lisp
From: Pascal Bourguignon <p...@informatimago.com>
Date: Thu, 08 Jun 2006 22:05:19 +0200
Local: Thurs, Jun 8 2006 4:05 pm
Subject: Re: a [hopefully] easy question

BobF <rNfOrSePeA...@charter.net> writes:
> Nevermind, Pascal.  I asked this question because I'm brand-spankin-new to
> lisp and thought there might be an easy way to accomplish what I was trying
> to do that I was overlooking.

> I'm not ready to debug/fix your untested guesses at a solution and I
> certainly don't need malicious bullshZt thrown my way.

That's exactly because you're a newbie you must try to understand any
piece of code thrown at you, bullshit or not.  If you had tried, you
could have corrected the trivial error you got from my first version.

--
__Pascal Bourguignon__                     http://www.informatimago.com/
In deep sleep hear sound,
Cat vomit hairball somewhere.
Will find in morning.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
9.  BobF  
View profile  
(11 users)  More options Jun 8 2006, 4:15 pm
Newsgroups: comp.lang.lisp
From: BobF <rNfOrSePeA...@charter.net>
Date: Thu, 8 Jun 2006 15:15:04 -0500
Local: Thurs, Jun 8 2006 4:15 pm
Subject: Re: a [hopefully] easy question

On Thu, 08 Jun 2006 22:05:19 +0200, Pascal Bourguignon wrote:
> BobF <rNfOrSePeA...@charter.net> writes:

>> Nevermind, Pascal.  I asked this question because I'm brand-spankin-new to
>> lisp and thought there might be an easy way to accomplish what I was trying
>> to do that I was overlooking.

>> I'm not ready to debug/fix your untested guesses at a solution and I
>> certainly don't need malicious bullshZt thrown my way.

> That's exactly because you're a newbie you must try to understand any
> piece of code thrown at you, bullshit or not.  If you had tried, you
> could have corrected the trivial error you got from my first version.

After completing all of "Hello World"!?  Go fZck yourself you arrogant POS!

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
10.  Ron Garret  
View profile  
(9 users)  More options Jun 8 2006, 5:22 pm
Newsgroups: comp.lang.lisp
From: Ron Garret <rNOSPA...@flownet.com>
Date: Thu, 08 Jun 2006 14:22:41 -0700
Local: Thurs, Jun 8 2006 5:22 pm
Subject: Re: a [hopefully] easy question
In article <87k67r2z28....@thalassa.informatimago.com>,
 Pascal Bourguignon <p...@informatimago.com> wrote:

> BobF <rNfOrSePeA...@charter.net> writes:

> > Nevermind, Pascal.  I asked this question because I'm brand-spankin-new to
> > lisp and thought there might be an easy way to accomplish what I was trying
> > to do that I was overlooking.

> > I'm not ready to debug/fix your untested guesses at a solution and I
> > certainly don't need malicious bullshZt thrown my way.

> That's exactly because you're a newbie you must try to understand any
> piece of code thrown at you, bullshit or not.  If you had tried, you
> could have corrected the trivial error you got from my first version.

While I agree with that sentiment, I do think that wiping out his entire
system is perhaps making the point a tad too harshly.

rg


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google