Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
dumb newbie question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Mari  
View profile  
 More options Jan 11 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Mari <mbmas...@colby.edu>
Date: 1998/01/11
Subject: dumb newbie question

Is there a way to do multiline comments in Common LISP/MCL?

/*
   For example, these two sentences would be comments if I was programming
   in Java.  However, I am not using Java because I'm trying to learn LISP
   and since I don't know how to do this in LISP I am stuck using a lot of
   semicolons for now.   :-)
*/

Thanks,
Mari

..................................
 Mari Masuda * mbmas...@colby.edu
 www.colby.edu/personal/mbmasuda/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


 
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.
Barry Margolin  
View profile  
 More options Jan 12 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Barry Margolin <bar...@bbnplanet.com>
Date: 1998/01/12
Subject: Re: dumb newbie question

In article <Pine.hpx.3.96.980111165556.5178A-100...@host-00.colby.edu>,

Mari  <mbmas...@colby.edu> wrote:
>Is there a way to do multiline comments in Common LISP/MCL?

#| ...

|#

--
Barry Margolin, bar...@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.


 
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.
Frank Chen  
View profile  
 More options Jan 12 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: m...@my.hostname.org (Frank Chen)
Date: 1998/01/12
Subject: Re: dumb newbie question

In article <Pine.hpx.3.96.980111165556.5178A-100...@host-00.colby.edu>,

Mari wrote:
>Is there a way to do multiline comments in Common LISP/MCL?
>/*
>   For example, these two sentences would be comments if I was programming
>   in Java.  However, I am not using Java because I'm trying to learn LISP
>   and since I don't know how to do this in LISP I am stuck using a lot of
>   semicolons for now.   :-)
>*/
>Thanks,
>Mari
>..................................
> Mari Masuda * mbmas...@colby.edu
> www.colby.edu/personal/mbmasuda/
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Hi Mari,
   Everything placed between a #| and |# is ignored.
   Two very good introductory texts on Common Lisp that I've used are:
   1) "ANSI Common Lisp" by Paul Graham.  Prentice-Hall, 1996.
      ISBN: 0-13-370875-6
   and 2) "Programming in Common Lisp" by Rodney A. Brooks.  John Wiley & Sons
      1985.
      ISBN: 0-471-81888-7

--
+--------------------------------------------------------------------+
|  Rui Qi Chen                              University of Guelph     |
|  Computing & Information Science          Guelph, Ontario          |
|  Email: rqc...@acm.org                    N1G 2W1  CANADA          |
+--------------------------------------------------------------------+


 
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.
Erik Naggum  
View profile  
 More options Jan 12 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <cle...@naggum.no>
Date: 1998/01/12
Subject: Re: dumb newbie question

* Mari Masuda
| Is there a way to do multiline comments in Common LISP/MCL?

* Frank Chen
| Everything placed between a #| and |# is ignored.

  this is not so, actually.  your statement could easily be construed to
  mean that the a #| is terminated by the first following |#, but #| and |#
  comments nest.  this means that it is quite safe to comment out an
  arbitrary amount of code with #| ... |#, quite unlike /* and */ in C,
  which are useless if the region you wish to comment out may contain
  another comment.

#:Erik, picking another nit for my nit collection, soon go to on world tour
--
The year "98" was new 1900 years ago.  |  Help fight MULE in GNU Emacs 20!
Be year 2000 compliant, write "1998"!  |  http://sourcery.naggum.no/emacs/


 
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.
Kent M Pitman  
View profile  
 More options Jan 12 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Kent M Pitman <pit...@world.std.com>
Date: 1998/01/12
Subject: Re: dumb newbie question

Mari <mbmas...@colby.edu> writes:
> Is there a way to do multiline comments in Common LISP/MCL?

> /*
>    For example, these two sentences would be comments if I was programming
>    in Java.  However, I am not using Java because I'm trying to learn LISP
>    and since I don't know how to do this in LISP I am stuck using a lot of
>    semicolons for now.   :-)
> */

> Thanks,
> Mari

 #| Yes,
    there is.
    #| And yes, it nests. |#
  |#

--- KMP's Style Recommendation Notes Follow ---

Btw, if you are commenting out code, you are stylistically
advised to use #||....||# since some editors think that |...|
occurs in balanced pairs (like "...") and that parens don't
have to balance between them; using double-||'s won't affect
Lisp at all, but will make some text editors do better paren
balancing.  When in #||...||#, I  encourage use of ;'s or
#|...|# for text comments since if the #||...||# is removed,
you should have parseable-code left.

 #|| ;The entire rest of this message is useless
     ;and has been commented out.

 #| 1) This is a comment.
    2) It's not a comment containing code.
    3) Parens needn't balance.
 |#

 #||
 (defun foo (x) ;obsolete, use new BAR
   x)
 ||#

 (defun bar (y) y) ;cool new name

 ||#


 
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.
Erik Naggum  
View profile  
 More options Jan 13 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <cle...@naggum.no>
Date: 1998/01/13
Subject: Re: dumb newbie question

* Mari Masuda
| Is there a way to do multiline comments in Common LISP/MCL?

* Frank Chen
| Everything placed between a #| and |# is ignored.

  this is not so, actually.  your statement could easily be construed to
  mean that the a #| is terminated by the first following |#, but #| and |#
  comments nest.  this means that it is quite safe to comment out an
  arbitrary amount of code with #| ... |#, quite unlike /* and */ in C,
  which are useless if the region you wish to comment out may contain
  another comment.

#:Erik, picking another nit for my nit collection, soon to go on world tour
--
The year "98" was new 1900 years ago.  |  Help fight MULE in GNU Emacs 20!
Be year 2000 compliant, write "1998"!  |  http://sourcery.naggum.no/emacs/


 
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.
±è¿µ¹®  
View profile  
 More options Jan 20 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: "±è¿µ¹®" <youngm...@lgis.lg.co.kr>
Date: 1998/01/20
Subject: Re: dumb newbie question

¿¬½ÀÀÔ´Ï´Ù.....sorry.......very....much

ank Chen ÀÌ(°¡) ¸Þ½ÃÁö¿¡¼­ ÀÛ¼ºÇÏ¿´½À´Ï´Ù...


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »